LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   rc.local not running? (https://www.linuxquestions.org/questions/slackware-14/rc-local-not-running-312391/)

sbirnie 04-12-2005 08:49 AM

rc.local not running?
 
I just recently installed Slackware 10.1 onto a machine. Unfortunatly my current box is RedHat (which Slackware will replace) so I'm a little off on how things are setup.

This is my current rc.local file:
Code:

#!/bin/sh
#
# /etc/rc.d/rc.local:  Local system initialization script.
#
# Put any local setup commands in here:
/etc/webmin/start >/dev/null 2>&1 </dev/null # Start Webmin
/usr/local/squid/sbin/squid

When I startup the box, neither webmin or squid has been started. Anyone know what might be going on? Where I can look for some info?

gbonvehi 04-12-2005 09:11 AM

Is /etc/rc.d/rc.local executable?

haze 04-12-2005 12:51 PM

chmod 755 /etc/rc.d/rc.local

dkpw 04-12-2005 02:34 PM

Quote:

Originally posted by haze
chmod 755 /etc/rc.d/rc.local
Yep, that's the command to use! :) See this thread.

dkpw

chedjuer 04-12-2005 10:58 PM

i am a newbie. i just install no-ip on suse 9.2. When i went to "/usr/local/bin" and tried to run "noip2" on the command line i got the error message: "bash: noip2: command not found". BTW, i loggin as root.
Do you guys know what happened to me????
thanks

gbonvehi 04-12-2005 11:12 PM

This is not a Suse forum but I guess we can help you anyway.
When you said you installed it, where did you did it? My noip2 executable is on /usr/local/sbin/
To find out where is the file use this command: find /usr -iname noip2
That should locate noip2 file for you and then you can cd to that directory and run it with ./noip2 or write the full path (if it's on /usr/local/sbin) like /usr/local/sbin/noip2

trey85stang 04-13-2005 01:18 AM

Re: rc.local not running?
 
Quote:

Originally posted by sbirnie
I just recently installed Slackware 10.1 onto a machine. Unfortunatly my current box is RedHat (which Slackware will replace) so I'm a little off on how things are setup.

This is my current rc.local file:
Code:

#!/bin/sh
#
# /etc/rc.d/rc.local:  Local system initialization script.
#
# Put any local setup commands in here:
/etc/webmin/start >/dev/null 2>&1 </dev/null # Start Webmin
/usr/local/squid/sbin/squid

When I startup the box, neither webmin or squid has been started. Anyone know what might be going on? Where I can look for some info?

Did you install a webmin package.. or install from source?? if you installed a package, webmin can be enabled on startup by the following

chmod +x /etc/rc.d/rc.webmin

Same for squid if you installed a binairy package...

You can get the binairy packages from linuxpacakges.net


All times are GMT -5. The time now is 07:15 PM.