diff --git a/tasks/main.yml b/tasks/main.yml
index 8172489e92328a3a95380f997eb5e23b3f332e78..c9b74c1c9586b91ecf65e40cbad0bd772ebfc2ab 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -18,6 +18,9 @@
     state=installed
     update_cache=yes
 
+# Autostart:
+# sudo update-rc.d spideroak defaults
+
 # Initial setup:
 # $ SpiderOakONE --setup=-
 # or provide a jason file with the credentials: {"username": "username","password": "password","reinstall": true | false,"device_name": "device name"}
diff --git a/templates/etc_init_d_spideroak b/templates/etc_init_d_spideroak
new file mode 100644
index 0000000000000000000000000000000000000000..e2a8108a89d5a7581456725e02b64da68b77dcde
--- /dev/null
+++ b/templates/etc_init_d_spideroak
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+### BEGIN INIT INFO
+# Provides: spideroak
+# Short-Description: Start and stop spideroak in headless mode
+# Description: SpiderOak is an encrypted cloud storage solution
+# Required-Start: $remote_fs
+# Required-Stop: $remote_fs
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+### END INIT INFO
+
+# Action to take
+case "$1" in
+    start)
+        echo "Starting SpiderOak ..."
+        SpiderOakONE --headless &
+        exit 0
+        ;;
+    stop)
+        echo "Stoping not supported yet."
+        ecit 0
+        ;;
+    *)
+        echo "Usage: service spideroak {start|stop}"
+        exit 1
+        ;;
+esac
+
+exit $?