On Sun, 15 Apr 2001, Al Sparks wrote:

> That's how I've been doing mine.  The biggest troubleshooting problem I
> had, by the way, is figuring out the path.  The "functions" script
> located in /etc/rc.d/init.d is where the $PATH is determined at startup
> time.
>
> For example, some of my installs placed the binary files in
> /usr/local/sbin.  Well, the default $PATH that redhat provides doesn't
> include /usr/local/sbin, though it does include /sbin and /usr/sbin.  I
> added /usr/local/sbin to the PATH in "functions" and everything worked
> fine.
>
You may want to be carefull about making the changes in "functions".  An
update may break your scripts, and leave you wondering what went wrong.
A safer way to do this is to add a line after:

# Source function library.
. /etc/rc.d/init.d/functions

PATH=$PATH:/usr/local/sbin

in the scripts that need programs in /usr/local/sbin.

Mikkel
-- 

    Do not meddle in the affairs of dragons,
 for you are crunchy and taste good with ketchup.



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to