Skip to content

Instantly share code, notes, and snippets.

@kbrnsr
Last active January 9, 2022 15:24
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kbrnsr/3984a0b45dcce5430d01 to your computer and use it in GitHub Desktop.
Save kbrnsr/3984a0b45dcce5430d01 to your computer and use it in GitHub Desktop.
Systemd unit file for dropbox, works with CentOS 7, should be in /etc/systemd/system/ as /etc/systemd/system/dropbox.service and permission 755, for the script fiile for starting and stopping dropbox see me gist here: https://gist.github.com/kbrnsr/571f0bdb865e8fb1d846
[Unit]
Description=Dropbox is a filesyncing sevice provided by dropbox.com. This service starts up the dropbox daemon.
After=network.target syslog.target
[Service]
Environment=LC_ALL=en_US.UTF-8
Environment=LANG=en_US.UTF-8
EnvironmentFile=-/etc/sysconfig/dropbox
ExecStart=/bin/dropbox start
ExecReload=/bin/dropbox restart
ExecStop=/bin/dropbox stop
Type=forking
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment