Skip to content

Instantly share code, notes, and snippets.

@snikch
Created May 30, 2018 05:15
Show Gist options
  • Select an option

  • Save snikch/acf4a3c5e80aced3861c36c521c71e38 to your computer and use it in GitHub Desktop.

Select an option

Save snikch/acf4a3c5e80aced3861c36c521c71e38 to your computer and use it in GitHub Desktop.
Dropbox Service for Ubuntu 16+
[Unit]
Description=Dropbox as a system service user %i
[Service]
Type=forking
ExecStart=/usr/bin/dropbox start
ExecStop=/usr/bin/dropbox stop
User=%i
Group=%i
# 'LANG' might be unnecessary, since systemd already sets the
# locale for all services according to "/etc/locale.conf".
# Run `systemctl show-environment` to make sure.
Environment=LANG=en_US.utf-8
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment