mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 20:59:41 +02:00

/var/run has been deprecated by systemd, so use /run instead, as suggested by systemd. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
19 lines
481 B
Desktop File
19 lines
481 B
Desktop File
[Unit]
|
|
Description=Nagios core
|
|
After=network.target local-fs.target
|
|
|
|
[Service]
|
|
Type=forking
|
|
User=nagios
|
|
Group=nagios
|
|
PIDFile=/run/nagios/nagios.pid
|
|
# Verify Nagios config before start as upstream suggested
|
|
ExecStartPre=/usr/bin/nagios -v /etc/nagios/nagios.cfg
|
|
ExecStart=/usr/bin/nagios -d /etc/nagios/nagios.cfg
|
|
ExecStop=/bin/kill -TERM ${MAINPID}
|
|
ExecStopPost=/bin/rm -f /var/spool/nagios/cmd/nagios.cmd
|
|
ExecReload=/bin/kill -HUP ${MAINPID}
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|