On Tuesday 14 June 2005 18:58, Michael W. Lucas wrote: > On Tue, Jun 14, 2005 at 11:22:07AM -0400, Vivek Khera wrote: > > On Jun 14, 2005, at 11:10 AM, K?vesd?n G?bor wrote: > > >For scripts in /usr/local/etc/rc.d You should add an entry to /etc/ > > >rc.conf. > > >For example, if You script is somedaemon.sh, then add > > >somedaemon_enable='YES' to /etc/rc.conf and it will run at the next > > >boot. > > > > but his scripts don't use rc-ng, so this is pointless. > > > > they should just work if they end in .sh and are executable. > > And this is the million-dollar question: should they? Two things > could be causing this behavior: > > a) old-style .sh scripts are not supported, Michael needs to rewrite them > for rcNG b) old-style .sh scripts are supported, Michael has some other > system problem > > If a), fine. If b), though, I need to really start digging. Anyone > here know the definitive answer? >
Well beeing new ( and only testing ) to 5.4-stable i can't say for sure but i think /etc/localpkg know better :) in /etc/defaults/rc.conf : local_startup="/usr/local/etc/rc.d /usr/X11R6/etc/rc.d" so the default should be ok if you don't change it in /etc/rc.conf from /etc/localpkg ( src updated a few days ago) : # $FreeBSD: src/etc/rc.d/localpkg,v 1.4.2.1 2004/10/10 09:50:53 mtm Exp $ # .......... for script in ${dir}/*.sh; do <--- so it should load all the *.sh files slist="${slist}${script_name_sep}${script}" done ............ for script in ${slist}; do if [ -x "${script}" ]; then <-- if the file is executable start it (set -T trap 'exit 1' 2 ${script} start) .............. from what i see the procedure hasn't changed much since 4.X > Thanks for all the help and suggestions, > > ==ml -- The world is coming to an end! Repent and return those library books!
pgpm0afFpoBao.pgp
Description: PGP signature