Files
librenms-librenms/scripts/librenms-poller-service.conf
T

27 lines
544 B
Plaintext
Raw Permalink Normal View History

2015-07-07 11:41:42 -04:00
# poller-service - SNMP polling service for LibreNMS
description "SNMP polling service for LibreNMS"
author "Clint Armstrong <[email protected]>"
# When to start the service
start on runlevel [2345]
# When to stop the service
stop on runlevel [016]
# Automatically restart process if crashed
respawn
2015-08-31 00:04:26 +02:00
# Restart an unlimited amount of times
respawn limit unlimited
2015-07-07 11:41:42 -04:00
chdir /opt/librenms
2015-07-07 12:04:36 -04:00
setuid librenms
setgid librenms
2015-07-07 11:41:42 -04:00
# Start the process
2015-07-07 12:04:36 -04:00
exec /opt/librenms/poller-service.py
2015-08-31 00:04:26 +02:00
# Wait 60 seconds before restart
post-stop exec sleep 60