pnp4nagios/scripts/npcd.service.in
2025-08-06 18:11:51 +02:00

17 lines
396 B
SYSTEMD

[Unit]
Description=npcd rrd processor for pnp4nagios
Documentation=https://github.com/pnp4nagios/docs
After=network.target local-fs.target
[Service]
Type=exec
User=@nagios_user@
Group=@nagios_grp@
PIDFile=@piddir@/npcd.pid
Environment="CONFIG_FILE=@pkgsysconfdir@/npcd.cfg"
ExecStart=@bindir@/npcd -f ${CONFIG_FILE}
#ExecStop=/bin/kill -s QUIT $MAINPID
[Install]
WantedBy=@NAGIOS_UNIT@.service