diff options
Diffstat (limited to 'app-misc/geneweb/files/geneweb.initd')
-rw-r--r-- | app-misc/geneweb/files/geneweb.initd | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/app-misc/geneweb/files/geneweb.initd b/app-misc/geneweb/files/geneweb.initd new file mode 100644 index 000000000000..8ed7013ab509 --- /dev/null +++ b/app-misc/geneweb/files/geneweb.initd @@ -0,0 +1,20 @@ +#!/sbin/runscript +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + need net +} + +start() { + ebegin "Starting geneweb server" + start-stop-daemon -S -u geneweb -x /usr/bin/gwd -- -bd /var/lib/geneweb -lang $LANG -log /var/log/geneweb.log -daemon + eend $? +} + +stop() { + ebegin "Stopping geneweb server" + start-stop-daemon -K -u geneweb -x /usr/bin/gwd + eend $? +} |