In message <[EMAIL PROTECTED]>,
Stephen Roderick <[EMAIL PROTECTED]> writes:
| We usually just wrap a shell script around the program and do:
For others I thought this would be useful.
This is how I run my Radiator.
Essentially supervise watches the radiator process (as it runs in the
foreground). If it dies or is killed, then it automatically restarts it.
supervise runs practically *everything* in my network - including quake
servers, smtpd, pop3, etc.
In the config file, use the "Foreground" attribute, and get the svc/supervise
package (see www.qmail.org).
Create a dir for supervise: mkdir -p /var/lock/svc/radiusd
And this is my start/stop script:
#!/bin/sh
#
# /etc/rc.d/init.d/radiusd
#
# Radiusd start/stop - Paul Gregg <[EMAIL PROTECTED]>
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/bin
export PATH
# See how we were called.
case "$1" in
start)
echo -n "Starting sshd daemon: "
supervise /var/lock/svc/radiusd /etc/raddb/radiusd -config_file \
/etc/raddb/radius-auth.cfg >> /etc/raddb/logs/debug &
# You may have to customise radiusd location (/etc/raddb) and your
# cfg file.
echo
;;
stop)
echo -n "Stopping cron daemon: "
svc -dx /var/lock/svc/radiusd
echo
;;
*)
echo "Usage: radiusd {start|stop}"
exit 1
esac
exit 0
Paul.
--
Email pgregg at tibus.net | CLUB24 | Email pgregg at nyx.net |
Technical Director | INTERNET | System Administrator |
The Internet Business Ltd | Free Access | Nyx Public Access Internet |
http://www.tibus.net | www.club24.co.uk | http://www.nyx.net |
===
Archive at http://www.thesite.com.au/~radiator/
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.