Startup Scripts

David Bandel david.bandel
Thu Feb 24 07:03:24 PST 2005


On Wed, 23 Feb 2005 21:18:41 -0800, Shawn Tayler
<stayler at xmtservices.net> wrote:
> Hi Guys,
> 
> I realize this may be a Slackware only issue but it seems general enough in
> nature to post here.
> 
> I am having a problem with rc.local not being run on system startup.  Its
> is called as the last thing in the rc.M script like this:
> 
> if [ -x /etc/rc.d/rc.local ]; then
>  . /etc/rc.d/rc.local
> fi
> 
> seems straight forward enough.  rc.local is set chmod +x so I can't figure
> out why its not running.  I am sure its something simple, but the 10
> percent rule has me on this.
> 

couple of thoughts:
1. will the script run from a command line (can root run this script?)
2. if ! 1, check your shebang line
3. if 1, check your rc.local environment.  Ensure you've either
full-pathed your commands or have a PATH= environment variable at the
top that takes care of all your command invocations in the script.

HTH,

David A. Bandel
-- 
Focus on the dream, not the competition.
            - Nemesis Air Racing Team motto


More information about the Linux-users mailing list