diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2011-09-08 21:32:20 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2011-09-08 21:32:20 +0200 |
commit | 7d0b31af62ca1e4c10554f6906424f62b70c50fb (patch) | |
tree | 99bc1166c32ce25d5aa66fcb9bbf2bbfd0a35d37 /net-irc/qwebirc/files/init-script | |
parent | 8cb793c2ff10463f518ab850b5de6f4bf6208bfb (diff) | |
download | overlay-7d0b31af62ca1e4c10554f6906424f62b70c50fb.tar.gz overlay-7d0b31af62ca1e4c10554f6906424f62b70c50fb.tar.xz overlay-7d0b31af62ca1e4c10554f6906424f62b70c50fb.zip |
net-irc/qwebirc: added ebuild
Diffstat (limited to '')
-rw-r--r-- | net-irc/qwebirc/files/init-script | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/net-irc/qwebirc/files/init-script b/net-irc/qwebirc/files/init-script new file mode 100644 index 0000000..2b35b6a --- /dev/null +++ b/net-irc/qwebirc/files/init-script @@ -0,0 +1,27 @@ +#!/sbin/runscript +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: qwebirc.initd,v 1.0 2011/03/11 12:11:50 lkraav Exp $ + +SVCHOME="/var/www/qwebirc" +LOGFILE="/var/log/qwebirc" + +depend() { + use net + need localmount + after bootmisc +} + +start() { + ebegin "Starting ${SVCNAME}" + start-stop-daemon --start --chuid qwebirc:qwebirc --chdir ${SVCHOME} \ + --quiet --exec ${SVCHOME}/run.py \ + -- -l ${LOGFILE} -p ${PORT} -P /var/run/qwebirc/${SVCNAME}.pid + eend $? +} + +stop() { + ebegin "Stopping ${SVCNAME}" + start-stop-daemon --stop --quiet --pidfile /var/run/qwebirc/${SVCNAME}.pid + eend $? +} |