Skip to content

Commit

Permalink
Merge pull request #1812 from spinza/pollerserviceupstart
Browse files Browse the repository at this point in the history
Change poller-service upstart script to wait before respawn and keep trying.
  • Loading branch information
f0o committed Aug 31, 2015
2 parents 607912c + e55b1cb commit 3798a0f
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 3798a0f

Please sign in to comment.