UbuntuOne u1sdtool sync daemon to start at boot on headless Ubuntu server
Posted on 2013-11-22
We have a headless Ubuntu (12.04.1 LTS) server where our files are synced every night at 11:00PM to storage on UbuntuOne using the u1sdtool daemon. It works perfectly but we have to start the daemon manually each time the server is restarted.
It seems the best way to get it running would be by modifying the /etc/init scripts and we tried that but it doesn't seem to work. As a stopgap measure we made the following entry to User curt's crontab file but it doesn't work either:
30 22 * * * /home/curt/bin/u1sdtool --connect 2>&1 >> /home/curt/log/u1sdtool.log
This command, when run manually from the 'curt' account works just fine.
It would be awesome if anyone could please provide the recommended way to add u1sdtool to the /etc/init Upstart system.
In the alternative, a better way to start or make sure u1sdtool is running (maybe through Cron) each day would be good too....