Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I use SpiderOak for online backup and file synchronisation (a la Dropbox.) I'm running it on my headless server via the SpiderOak --headless command.

At the moment, I have to start this manually inside a screen session to keep it running. This means I have to remember to start my backup software each time I restart the server (not ideal.)

How can I start SpiderOak automatically with the rest of the system processes? (For extra points, how can I monitor it to make sure it stays alive?)

I've tried adding a spideroak.conf file to the Upstart services in /etc/init as shown below, but it fails to start because SpiderOak needs to run as my normal user account (not root.)

root@helios:~/.SpiderOak# cat /etc/init/spideroak.conf
description "The SpiderOak automatic cloud backup service."

# Start when system starts.
start on runlevel [2345]
stop on runlevel [!2345]

exec SpiderOak --headless
share|improve this question
add comment

1 Answer

This is what I use in order to get SpiderOak to automatically start after a reboot on my headless server (Ubuntu 12.04). I use cron with the following entry:

@reboot /sbin/start-stop-daemon -b -x /usr/bin/SpiderOak -S -- --headless

checking the syslog I can confirm it starts up and using top I can confirm its running after reboot.

Hope this helps.

share|improve this answer
    
What does the "-S" option do? It tells me there's "no such option". Also, why the "--" before the "--headless"? –  colan Dec 5 '13 at 20:50
    
Don't worry about it. I just realized that those are start-stop-daemon options, not SpiderOak options. –  colan Dec 5 '13 at 21:07
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.