s4553711
9/7/2015 - 4:58 AM

ubuntu 15.04 dropbox systemd

ubuntu 15.04 dropbox systemd

Install Dropbox and python script, symlink python script to /usr/local/bin/dropbox and add to your path.

/etc/systemd/system/dropbox.service contents

[Unit]
Description=Dropbox Service
After=network.target

[Service]
ExecStart=/bin/sh -c '/usr/local/bin/dropbox start'
ExecStop=/bin/sh -c '/usr/local/bin/dropbox stop'
PIDFile=${HOME}/.dropbox/dropbox.pid
User=user
Group=user
Type=forking
Restart=on-failure
RestartSec=5
StartLimitInterval=60s
StartLimitBurst=3

[Install]
WantedBy=multi-user.target