Skip to content

Instantly share code, notes, and snippets.

@Kautenja
Created October 5, 2019 00:23
Show Gist options
  • Save Kautenja/ee257bd7033797591151de164c74e1a0 to your computer and use it in GitHub Desktop.
Save Kautenja/ee257bd7033797591151de164c74e1a0 to your computer and use it in GitHub Desktop.
A dropbox service file
[Unit]
Description=Dropbox as a system service user %i
After=network.target
[Service]
ExecStart=${HOME}/.dropbox-dist/dropboxd
ExecStop=cat ${HOME}/.dropbox/dropbox.pid | xargs kill
User=%i
Group=%i
PIDFile=${HOME}/.dropbox/dropbox.pid
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