2016-12-24 10:24:09 +01:00
|
|
|
[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=/var/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 /var/run/nagios/nrpe.pid
|
|
|
|
TimeoutStopSec=60
|
|
|
|
User=nagios
|
|
|
|
Group=nagios
|
2017-06-22 16:50:52 +02:00
|
|
|
PrivateTmp=false
|
2016-12-24 10:24:09 +01:00
|
|
|
OOMScoreAdjust=-500
|