aboutsummaryrefslogtreecommitdiffstats
path: root/non-free/3dm2/3dm2.initd
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2009-02-12 08:46:09 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2009-02-12 08:46:09 +0000
commit66101679ec75ef7f6c675b0edf1e3c10a484946c (patch)
tree900ead76c8e84e2c1b43a3dbf203ff7cd046deeb /non-free/3dm2/3dm2.initd
parent865b9a436cbeeaa2a782ec661bdb863ef8b293f5 (diff)
downloadaports-66101679ec75ef7f6c675b0edf1e3c10a484946c.tar.bz2
aports-66101679ec75ef7f6c675b0edf1e3c10a484946c.tar.xz
created new directory structure.
Diffstat (limited to 'non-free/3dm2/3dm2.initd')
-rw-r--r--non-free/3dm2/3dm2.initd22
1 files changed, 22 insertions, 0 deletions
diff --git a/non-free/3dm2/3dm2.initd b/non-free/3dm2/3dm2.initd
new file mode 100644
index 0000000000..bf09e9754d
--- /dev/null
+++ b/non-free/3dm2/3dm2.initd
@@ -0,0 +1,22 @@
+#!/sbin/runscript
+
+NAME=3dm2
+DAEMON=/usr/sbin/$NAME
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting ${NAME}"
+ start-stop-daemon --start --quiet --background \
+ --exec ${DAEMON} -- ${OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${NAME}"
+ start-stop-daemon --stop --quiet \
+ --exec ${DAEMON} \
+ eend $?
+}