Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Jan 2001 16:00:45 -0800
From:      "Crist J. Clark" <cjclark@reflexnet.net>
To:        Norbert Koch <nk@LF.net>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Starting daemons in rc.local
Message-ID:  <20010113160045.G97980@rfx-64-6-211-149.users.reflexco>
In-Reply-To: <vzy9wfxn16.fsf@lamia.LF.net>; from nk@LF.net on Sat, Jan 13, 2001 at 08:36:05PM %2B0100
References:  <20010113220443.A528@poeza.iconnect.co.ke> <005e01c07d97$b7fdef60$1200a8c0@gsicomp.on.ca> <vzy9wfxn16.fsf@lamia.LF.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jan 13, 2001 at 08:36:05PM +0100, Norbert Koch wrote:
> "Matthew Emmerton" <matt@gsicomp.on.ca> writes:
> 
> Hi!
> 
> [...]
> > # /usr/local/etc/rc.d/radius.sh
> > 
> > #!/bin/sh
> > if [ -f /sbin/radiusd]; then
> >   echo "Radius"
> >   /sbin/radiusd -d /etc/raddb -a /var/adm/radacct
> > fi
> [...]
> 
> 
> Don't you have to provide start and stop cases? IIRC, the systems
> whines on this sort of script, although starting the daemon.

It whines at shutdown, not startup, if the string 'stop' does not
exist somewhere in the script.

The problem is that the rc.d scripts should be called at shutdown too
to properly halt services that need the warning. But since many old
scripts assume that they are only called at startup, you could end up
starting a second instance of your service right before they are all
killed by init. And that might not be a Good Thing.
-- 
Crist J. Clark                           cjclark@alum.mit.edu


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010113160045.G97980>