Skip to content

Instantly share code, notes, and snippets.

@Joshfindit
Forked from richhollis/dropbox-monit
Last active May 11, 2016 14:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Joshfindit/c10117a1531fcd06c3320ff6319f3ea3 to your computer and use it in GitHub Desktop.
Save Joshfindit/c10117a1531fcd06c3320ff6319f3ea3 to your computer and use it in GitHub Desktop.
Shell script for monit to keep the dropbox daemon running
check process dropbox with pidfile /home/username/.dropbox/dropbox.pid
start program = "/home/username/dropbox.py start"
as uid username and gid username
stop program = "/home/username/dropbox.py stop"
as uid username and gid username
# Installed to /etc/monit/conf.d/dropbox-monit
# Assumes that https://www.dropbox.com/download?dl=packages/dropbox.py is installed at /home/username/dropbox.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment