From owner-freebsd-isp@FreeBSD.ORG Tue Aug 5 04:41:15 2003 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D028C37B401 for ; Tue, 5 Aug 2003 04:41:14 -0700 (PDT) Received: from munk.nu (213-152-51-194.dsl.eclipse.net.uk [213.152.51.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 036DC43FCB for ; Tue, 5 Aug 2003 04:41:14 -0700 (PDT) (envelope-from munk@munk.nu) Received: from munk by munk.nu with local (Exim 4.20) id 19k0Bk-000BFg-CQ for freebsd-isp@freebsd.org; Tue, 05 Aug 2003 12:41:12 +0100 Date: Tue, 5 Aug 2003 12:41:12 +0100 From: Jez Hancock To: FreeBSD ISP List Message-ID: <20030805114049.GA39969@users.munk.nu> Mail-Followup-To: FreeBSD ISP List References: <20030805110323.GA63785@ns2.wananchi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030805110323.GA63785@ns2.wananchi.com> User-Agent: Mutt/1.4.1i Sender: User Munk Subject: Re: startup script for kannel ? X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Aug 2003 11:41:15 -0000 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/