summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/stuntman/files/initd.v1')
-rw-r--r--net-misc/stuntman/files/initd.v121
1 files changed, 21 insertions, 0 deletions
diff --git a/net-misc/stuntman/files/initd.v1 b/net-misc/stuntman/files/initd.v1
new file mode 100644
index 000000000000..154d43e863b8
--- /dev/null
+++ b/net-misc/stuntman/files/initd.v1
@@ -0,0 +1,21 @@
+#!/sbin/runscript
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting STUNTMAN"
+ start-stop-daemon --start --quiet --exec /usr/sbin/stunserver \
+ --make-pidfile --pidfile=/run/stunserver.pid --background
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping STUNTMAN"
+ start-stop-daemon --stop --quiet --pidfile=/run/stunserver.pid
+ eend $?
+}