startup script for kannel ?

Jez Hancock jez.hancock at munk.nu
Tue Aug 5 04:41:15 PDT 2003


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/


More information about the freebsd-isp mailing list