librenms/poller-service.conf

30 lines
668 B
Plaintext
Raw Normal View History

2015-07-07 15:41:42 +00:00
# poller-service - SNMP polling service for LibreNMS
description "SNMP polling service for LibreNMS"
author "Clint Armstrong <clint@clintarmstrong.net>"
# When to start the service
start on runlevel [2345]
# When to stop the service
stop on runlevel [016]
# Automatically restart process if crashed
respawn
# Essentially lets upstart know the process will detach itself to the background
2015-07-07 16:04:36 +00:00
#expect fork
2015-07-07 15:41:42 +00:00
# # Run before process
# pre-start script
# [ -d /var/run/myservice ] || mkdir -p /var/run/myservice
# echo "Put bash code here"
# end script
chdir /opt/librenms
2015-07-07 16:04:36 +00:00
setuid librenms
setgid librenms
2015-07-07 15:41:42 +00:00
# Start the process
2015-07-07 16:04:36 +00:00
exec /opt/librenms/poller-service.py