summaryrefslogtreecommitdiff
path: root/package/openct/files/openct.init
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-12-30 22:52:51 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-12-30 22:52:51 +0100
commit58d31896056e604185acf3606b99257cea519dd1 (patch)
tree3a0fb34da5dbe8dc12326fcd7fbf0c3916028f41 /package/openct/files/openct.init
parent220a96f9926788ed531717f78e44fdf1e7ab3b34 (diff)
parent845317b460ee99ad633534cad4de72404af7e30b (diff)
resolve merge conflicts
Diffstat (limited to 'package/openct/files/openct.init')
-rw-r--r--package/openct/files/openct.init28
1 files changed, 28 insertions, 0 deletions
diff --git a/package/openct/files/openct.init b/package/openct/files/openct.init
new file mode 100644
index 000000000..5f4b93c16
--- /dev/null
+++ b/package/openct/files/openct.init
@@ -0,0 +1,28 @@
+#!/bin/sh
+#PKG openct
+#INIT 60
+
+. /etc/rc.conf
+
+case $1 in
+autostop) ;;
+autostart)
+ test x"${openct:-NO}" = x"NO" && exit 0
+ exec sh $0 start
+ ;;
+start)
+ test -d /var/run/openct || mkdir -p /var/run/openct
+ /usr/sbin/openct-control init
+ ;;
+stop)
+ /usr/sbin/openct-control shutdown
+ ;;
+restart)
+ sh $0 stop
+ sh $0 start
+ ;;
+*)
+ echo "usage: $0 {start | stop | restart}"
+ exit 1
+esac
+exit $?