Skip to content

Commit

Permalink
Change upstart script:
Browse files Browse the repository at this point in the history
- Respawn and unlimited number of times
- Wait 60 seconds before restarting
Logic is to give whatever cause the process to fail some time to fix.  And to keep trying.
  • Loading branch information
spinza committed Aug 30, 2015
1 parent 607912c commit e55b1cb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions poller-service.conf
Expand Up @@ -12,9 +12,15 @@ 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

0 comments on commit e55b1cb

Please sign in to comment.