Date: Sat, 13 Sep 1997 10:16:39 +0100 From: Brian Somers <brian@awfulhak.org> To: freebsd-hackers@freebsd.org Subject: rc & rc.conf Message-ID: <199709130916.KAA04290@awfulhak.demon.co.uk>
next in thread | raw e-mail | index | archive | help
This is a disaster waiting to happen: /etc/rc.conf: [.....] inetd_enable="YES" # Run the network daemon displatcher (or NO). [.....] cron_enable="YES" # Run the periodic job daemon. [.....] /etc/rc: [.....] if [ "X${inetd_enable}" = X"YES" ]; then echo -n ' inetd'; inetd ${inetd_flags} fi if [ "X${cron_enable}" = X"YES" ]; then echo -n ' cron'; cron fi [.....] I suggest the following (and will commit it in the next few hours if nobody objects): Index: rc =================================================================== RCS file: /home/ncvs/src/etc/rc,v retrieving revision 1.135 diff -c -r1.135 rc *** rc 1997/08/17 15:02:34 1.135 --- rc 1997/09/13 09:15:40 *************** *** 218,228 **** # Now start up miscellaneous daemons that don't belong anywhere else # echo -n starting standard daemons: ! if [ "X${inetd_enable}" = X"YES" ]; then echo -n ' inetd'; inetd ${inetd_flags} fi ! if [ "X${cron_enable}" = X"YES" ]; then echo -n ' cron'; cron fi --- 218,228 ---- # Now start up miscellaneous daemons that don't belong anywhere else # echo -n starting standard daemons: ! if [ "X${inetd_enable}" != X"NO" ]; then echo -n ' inetd'; inetd ${inetd_flags} fi ! if [ "X${cron_enable}" != X"NO" ]; then echo -n ' cron'; cron fi -- Brian <brian@awfulhak.org>, <brian@freebsd.org> <http://www.awfulhak.org> Don't _EVER_ lose your sense of humour....
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199709130916.KAA04290>