24 lines
673 B
SYSTEMD
24 lines
673 B
SYSTEMD
|
[Unit]
|
||
|
Description=Nagios Remote Program Executor
|
||
|
Documentation=http://www.nagios.org/documentation
|
||
|
After=var-run.mount nss-lookup.target network.target local-fs.target time-sync.target
|
||
|
Before=getty@tty1.service plymouth-quit.service xdm.service
|
||
|
Conflicts=nrpe.socket
|
||
|
Requires=network.target
|
||
|
|
||
|
[Service]
|
||
|
Type=forking
|
||
|
User=centreon-engine
|
||
|
Group=centreon-engine
|
||
|
EnvironmentFile=/etc/default/centreon-nrpe4
|
||
|
ExecStart=/usr/sbin/centreon-nrpe4 -c /etc/nrpe/centreon-nrpe4.cfg -d $NRPE_OPT
|
||
|
Restart=on-abort
|
||
|
PIDFile=/var/log/nrpe/nrpe4.pid
|
||
|
ExecStopPost=/bin/rm -f /var/log/nrpe/nrpe4.pid
|
||
|
TimeoutStopSec=60
|
||
|
PrivateTmp=false
|
||
|
OOMScoreAdjust=-500
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|