mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
27 lines
544 B
Plaintext
27 lines
544 B
Plaintext
# 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
|
||
|
|
|
||
# Restart an unlimited amount of times
|
|||
|
|
respawn limit unlimited
|
||
|
|
|
||
chdir /opt/librenms
|
|||
setuid librenms
|
|||
|
|
setgid librenms
|
||
|
|||
|
|
# Start the process
|
||
exec /opt/librenms/poller-service.py
|
|||
|
|||
|
|
# Wait 60 seconds before restart
|
||
|
|
post-stop exec sleep 60
|