summaryrefslogtreecommitdiff
path: root/packages/exalt/exalt-daemon
diff options
context:
space:
mode:
authorJohn Lee <john_lee@openmoko.org>2008-04-23 12:11:16 +0000
committerJohn Lee <john_lee@openmoko.org>2008-04-23 12:11:16 +0000
commit3ce4a6937fcb00ba62fddb01cfbb907707f5df6d (patch)
treea21597fd100d23e5ea20f1da60c709027c9cfb95 /packages/exalt/exalt-daemon
parenta26407aa5ebea6946f5f888f72fce81756f712bf (diff)
exalt: Exalt is a network manager for the windows manager Enlightenment
DR17. * updated sane-srcrevs as well.
Diffstat (limited to 'packages/exalt/exalt-daemon')
-rw-r--r--packages/exalt/exalt-daemon/.mtn2git_empty0
-rw-r--r--packages/exalt/exalt-daemon/init37
2 files changed, 37 insertions, 0 deletions
diff --git a/packages/exalt/exalt-daemon/.mtn2git_empty b/packages/exalt/exalt-daemon/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/exalt/exalt-daemon/.mtn2git_empty
diff --git a/packages/exalt/exalt-daemon/init b/packages/exalt/exalt-daemon/init
new file mode 100644
index 0000000000..cbceed1793
--- /dev/null
+++ b/packages/exalt/exalt-daemon/init
@@ -0,0 +1,37 @@
+#!/bin/sh
+set -e
+
+#need dbus and hald
+
+start() {
+ echo -n "Starting Exalt daemon..."
+ start-stop-daemon --start --exec /usr/sbin/exalt-daemon \
+ --pidfile /var/run/exaltd.pid
+ echo "done."
+}
+
+stop() {
+ echo -n "Stopping Exalt daemon..."
+ start-stop-daemon --stop --exec /usr/sbin/exalt-daemon \
+ --pidfile /var/run/exaltd.pid
+ echo "done."
+}
+
+case "$1" in
+ start)
+ start
+ ;;
+ stop)
+ stop
+ ;;
+ restart)
+ stop
+ sleep 2
+ start
+ ;;
+ *)
+ echo "Usage: $(basename $0) {start|stop|restart}"
+ exit 1
+esac
+
+exit 0