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

17 lines
491 B
SYSTEMD

[Unit]
Description=gearman 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@/gearman_worker.pid
Environment="CONFIG_FILE=@pkgsysconfdir@/process_perfdata.cfg"
ExecStart="@libexecdir@/process_perfdata.pl --config=${CONFIG_FILE} --gearman --pidfile=@piddir@/gearman_worker.pid"
ExecStop=/bin/kill -s QUIT "$MAINPID"
[Install]
WantedBy=nagios.service