Danny wrote:
> Assuming I want to install sys progs without the RPMS I was wonder why the
> developers of RH have made modifying etc/rc.d so complex.
> 
> Whereas in BSD you have to only create a file called sysprogs.sh to start the
> program up.

Between the BSD and SysV init style init scripts, I'll take Sys V,
thanks  :)

If you need to start a program at boot time, you can either create a
script in /etc/rc.d/init.d and a symlink in /etc/rc.d/rc<runlevel>.d, or
put it in /etc/rc.d/rc.local.  Worst case scenario is one step longer
than the BSD style.  The benefit comes with the ability to start and
stop a single service without having to remember complex commands.  For
instance, I run qmail.  Every time I add a domain, I want to restart
qmail.  The following commands are in its init script:

        [ /var/qmail/users/assign -nt /var/qmail/users/cdb ] \
                && /usr/bin/qmail/qmail-newu
        PATH="/var/qmail/bin:$PATH"; export PATH
        qmail-start "`cat /etc/qmail/dot-qmail`"
/usr/local/bin/accustamp \
                | /usr/local/bin/setuser qmaill \
                /usr/local/bin/cyclog -n500 /var/log/qmail &

Now, there's nothing that would stop me from using such a script under
BSD, but I think that Sys V's init is a better design.  It's very clean,
and IMHO, easier to learn than the BSD style scripts.

All the same, use what suits you.  

MSG


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to