diff options
Diffstat (limited to 'www-apache/anyterm/files/anyterm.init.d')
-rw-r--r-- | www-apache/anyterm/files/anyterm.init.d | 21 |
1 files changed, 21 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..771f4bc1c050 --- /dev/null +++ b/www-apache/anyterm/files/anyterm.init.d @@ -0,0 +1,21 @@ +#!/sbin/runscript +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later +# $Id$ + +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 $? +} |