summaryrefslogtreecommitdiffstats
path: root/debian/nagios-nrpe-server.service
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 16:21:12 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 16:21:12 +0000
commit393853db31e146165afcabf94d20d653f32001b1 (patch)
treee0b0ae14e8dcafadef5f0b6e4284f8e6e1600677 /debian/nagios-nrpe-server.service
parentAdding upstream version 4.1.0. (diff)
downloadnagios-nrpe-debian.tar.xz
nagios-nrpe-debian.zip
Adding debian version 4.1.0-1.debian/4.1.0-1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/nagios-nrpe-server.service')
-rw-r--r--debian/nagios-nrpe-server.service23
1 files changed, 23 insertions, 0 deletions
diff --git a/debian/nagios-nrpe-server.service b/debian/nagios-nrpe-server.service
new file mode 100644
index 0000000..4b5ae6a
--- /dev/null
+++ b/debian/nagios-nrpe-server.service
@@ -0,0 +1,23 @@
+[Unit]
+Description=Nagios Remote Plugin Executor
+Documentation=http://www.nagios.org/documentation
+After=var-run.mount nss-lookup.target network.target local-fs.target remote-fs.target time-sync.target
+Before=getty@tty1.service plymouth-quit.service xdm.service
+Conflicts=nrpe.socket
+
+[Install]
+WantedBy=multi-user.target
+
+[Service]
+Type=simple
+Restart=on-abort
+PIDFile=/run/nagios/nrpe.pid
+EnvironmentFile=-/etc/default/nagios-nrpe-server
+ExecStart=/usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -f $NRPE_OPTS
+ExecReload=/bin/kill -HUP $MAINPID
+ExecStopPost=/bin/rm -f /run/nagios/nrpe.pid
+TimeoutStopSec=60
+User=nagios
+Group=nagios
+PrivateTmp=true
+OOMScoreAdjust=-500