#!/sbin/runscript # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 depend() { need localmount } checkconfig() { if ! [ -f /etc/god.conf ]; then eerror "Configuration file /etc/god.conf does not exist." return 1 fi return 0 } start() { checkconfig || return 1 ebegin "Starting God Daemon" /usr/bin/god -P /var/run/god.pid -l /var/log/god.log /usr/bin/god load /etc/god.conf eend $? } stop() { ebegin "Stopping God Daemon" kill `cat /var/run/god.pid` eend $? }