Skip to content

Instantly share code, notes, and snippets.

@martbhell
Created November 10, 2015 17:25
Show Gist options
  • Save martbhell/207f4c11dfbf67f7302c to your computer and use it in GitHub Desktop.
Save martbhell/207f4c11dfbf67f7302c to your computer and use it in GitHub Desktop.
dropbox systemd with dropbox.py script for debian 8 jessie
[Unit]
Description=Dropbox Service
After=network.target
[Service]
ExecStart=/bin/sh -c '/usr/local/bin/dropbox.py start'
ExecStop=/bin/sh -c '/usr/local/bin/dropbox.py stop'
PIDFile=/home/USER/.dropbox/dropbox.pid
User=USER
Group=USER
Type=forking
Restart=on-failure
RestartSec=5
StartLimitInterval=60s
StartLimitBurst=3
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment