Skip to contentSkip to conversation

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

PATCH New Chen Qi 1 participant 1 message Oct 19, 2020

lore
Share & tools
lore

Chen Qi

author
#0 lore raw

PATCH 1/1 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.

---
 recipes-extended/nagios/nagios-nsca/nagios-nsca.service | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-extended/nagios/nagios-nsca/nagios-nsca.service +1 -1
index aa38b7f..f6eb33e 100644
@@ -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]
Signature · 1 line
2.17.1