LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   network startup script for redhat 9 (https://www.linuxquestions.org/questions/linux-newbie-8/network-startup-script-for-redhat-9-a-169252/)

durden2.0 04-12-2004 02:50 PM

network startup script for redhat 9
 
I have read a few threads around here and have noticed some people have the same problem, but I have yet to find a clear answer. I am using redhat 9.0 on this machine and I have to manually start the network by running "service network restart" everytime the machine is booted up because it doesn't work on boot. I was wondering if there was a way I could put this command in a script so that no matter what user logs in, etc that it will get the networking up for them. Thanks for the help

AutOPSY 04-12-2004 05:35 PM

its hard to say exactly, if all your users use bash shell, you could, put it in /etc/bashrc

otherwise incorporate it into sysinit.rc in the /etc/rc.d/ directory, or into one or more of your runlevel scripts.

locate rc.d / |grep rc.d

durden2.0 04-12-2004 07:17 PM

Well all of my users use bash. However, the command "service network restart" requires the root environment to complete. Is there anyway to do something to allow that command to run?


All times are GMT -5. The time now is 04:13 PM.