Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Jan 2001 14:33:33 -0500
From:      "Matthew Emmerton" <matt@gsicomp.on.ca>
To:        "Odhiambo Washington" <wash@iconnect.co.ke>, "FBSD-Q" <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Starting daemons in rc.local
Message-ID:  <005e01c07d97$b7fdef60$1200a8c0@gsicomp.on.ca>
References:  <20010113220443.A528@poeza.iconnect.co.ke>

next in thread | previous in thread | raw e-mail | index | archive | help
> Shell script gurus assistance required.
> Okay I need to start these two daemons the new way-- seems 4.2-STABLE
> hates the way they are being started...
> Below is the old method I used in 3.x

[ snip copy of rc.local script ]

You should make startup scripts in /usr/local/etc/rc.d.  The /etc/rc script
will run any executable script in that directory when the system boots.

# /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

# /usr/local/etc/rc.d/choicenet.sh

#!/bin/sh
if [ -f /etc/choicenet/filterd ]; then
  echo "Choicenet"
  /etc/choicenet/filterd
fi

--
Matt Emmerton



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?005e01c07d97$b7fdef60$1200a8c0>