Changed the old code to work as a daemon
[googlelatitude] / data / glupdater
diff --git a/data/glupdater b/data/glupdater
new file mode 100644 (file)
index 0000000..54d7055
--- /dev/null
@@ -0,0 +1,12 @@
+author "Danilo Luvizotto <danilo.luvizotto@gmail.com>"
+description "Google Latitude Updater Daemon"
+
+start on started hildon-desktop
+
+console output
+
+post-stop script
+    killall -9 googlelatitude-daemon
+end script
+
+exec /bin/su - user -c "/opt/linfati.com/googlelatitude-daemon -s"