Date: Sun, 4 Jan 2004 14:52:46 -0600 (CST) From: David Fleck <david.fleck@mchsi.com> To: Micke P <mickep3@yahoo.com> Cc: freebsd-questions@freebsd.org Subject: RE: starting daemons at server start Message-ID: <20040104144917.E69625@grond.sourballs.org> In-Reply-To: <20040104203928.97931.qmail@web14525.mail.yahoo.com> References: <20040104203928.97931.qmail@web14525.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 4 Jan 2004, Micke P wrote:
> Examples of this script(working :-))?
>$ cat /usr/local/etc/rc.d/apache.sh
#!/bin/sh
case "$1" in
start)
[ -x /usr/local/sbin/apachectl ] && /usr/local/sbin/apachectl start > /dev/null && echo 'apache: start'
;;
stop)
[ -r /var/run/httpd.pid ] && /usr/local/sbin/apachectl stop > /dev/null && echo ' apache: stop'
;;
*)
echo "Usage: `basename $0` {start|stop}" >&2
;;
esac
exit 0
works on my system (4.9).
--
David Fleck
david.fleck@mchsi.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040104144917.E69625>
