poller service upstart conf working

This commit is contained in:
Clint Armstrong
2015-08-25 11:35:16 -04:00
parent 57bf214df3
commit cf8844742e
+4 -3
View File
@@ -13,7 +13,7 @@ stop on runlevel [016]
respawn respawn
# Essentially lets upstart know the process will detach itself to the background # Essentially lets upstart know the process will detach itself to the background
expect fork #expect fork
# # Run before process # # Run before process
# pre-start script # pre-start script
@@ -21,8 +21,9 @@ expect fork
# echo "Put bash code here" # echo "Put bash code here"
# end script # end script
# Set working directory
chdir /opt/librenms chdir /opt/librenms
setuid librenms
setgid librenms
# Start the process # Start the process
exec su -u librenms poller-service.py exec /opt/librenms/poller-service.py