summaryrefslogtreecommitdiff
path: root/www-apache/anyterm/files/anyterm.init.d
diff options
context:
space:
mode:
Diffstat (limited to 'www-apache/anyterm/files/anyterm.init.d')
-rw-r--r--www-apache/anyterm/files/anyterm.init.d20
1 files changed, 20 insertions, 0 deletions
diff --git a/www-apache/anyterm/files/anyterm.init.d b/www-apache/anyterm/files/anyterm.init.d
new file mode 100644
index 000000000000..f48fff7783e0
--- /dev/null
+++ b/www-apache/anyterm/files/anyterm.init.d
@@ -0,0 +1,20 @@
+#!/sbin/openrc-run
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License, v2 or later
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting ${SVCNAME}"
+ start-stop-daemon --start --exec /usr/sbin/anytermd -- \
+ --user "${USER}" --port ${PORT} ${ANYTERM_OPTIONS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${SVCNAME}"
+ start-stop-daemon --stop --exec /usr/sbin/anytermd
+ eend $?
+}