Date: Tue, 5 Aug 2003 12:41:12 +0100 From: Jez Hancock <jez.hancock@munk.nu> To: FreeBSD ISP List <freebsd-isp@freebsd.org> Subject: Re: startup script for kannel ? Message-ID: <20030805114049.GA39969@users.munk.nu> In-Reply-To: <20030805110323.GA63785@ns2.wananchi.com> References: <20030805110323.GA63785@ns2.wananchi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi Wash, On Tue, Aug 05, 2003 at 02:03:23PM +0300, ODHIAMBO Washington wrote: > I am trying out kannel (/usr/ports/www/kannel) but I don't seem to > see any startup scripts for the modules. > Anyone has scripts to start those? Check out rc(8) manpage - especially EXAMPLES section: EXAMPLES The following is a simple, hypothetical example of an rc.d script, which would start a daemon at boot time, and kill it at shutdown time. #!/bin/sh - # # initialization/shutdown script for foobar package case "$1" in start) /usr/local/sbin/foo -d && echo -n ' foo' ;; stop) kill `cat /var/run/foo.pid` && echo -n ' foo' ;; *) echo "unknown option: $1 - should be 'start' or 'stop'" >&2 ;; esac Probably quicker to roll your own :) -- Jez http://www.munk.nu/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030805114049.GA39969>