mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
first attempt at upstart conf
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
# 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
|
||||
expect fork
|
||||
|
||||
# # Run before process
|
||||
# pre-start script
|
||||
# [ -d /var/run/myservice ] || mkdir -p /var/run/myservice
|
||||
# echo "Put bash code here"
|
||||
# end script
|
||||
|
||||
# Set working directory
|
||||
chdir /opt/librenms
|
||||
|
||||
# Start the process
|
||||
exec su -u librenms poller-service.py
|
||||
Reference in New Issue
Block a user