nagios-nsca: use /run instead of /var/run in systemd service file

/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>
This commit is contained in:
Chen Qi 2020-10-19 15:30:11 +08:00 committed by Bruce Ashfield
parent 28cca9a78e
commit 3f8f47e31e

View File

@ -5,7 +5,7 @@ After=syslog.target network.target
[Service]
Type=forking
ExecStart=/usr/bin/nsca -s -c /etc/nagios/nsca.cfg
PIDFile=/var/run/nsca.pid
PIDFile=/run/nsca.pid
TimeoutSec=60
[Install]