Link to home
Start Free TrialLog in
Avatar of expertblr
expertblr

asked on

Linux: Network service reads which file

hi,

    I want to know which configuration file is read by the 'Service Network restart'  command. The S10network script in the /etc/rc5.d directory  indicates that it reads ifcfg-eth0 file, but when I edit ifcfg-eth0 file and then restart the network service it is not reading the ifcfg-eth0 file and hence the required Ip address is not assigned to NIC.


Please advise on this.....
Avatar of ravenpl
ravenpl
Flag of Poland image

strace -f command_to_run parameters

check which files are opened.
ASKER CERTIFIED SOLUTION
Avatar of jsvor
jsvor

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rindi
On CentOS (Redhat clone), the script that is started for networking is /etc/init.d/networking.
Avatar of jsvor
jsvor

if I ever have to restart my network connections I always use '/etc/rc.d/init.d/network restart'
Avatar of expertblr

ASKER

Thanks all.