mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-30 16:14:21 +02:00
poller service upstart conf working
This commit is contained in:
+4
-3
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user