Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 254
  • Last Modified:

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.....
0
expertblr
Asked:
expertblr
1 Solution
 
ravenplCommented:
strace -f command_to_run parameters

check which files are opened.
0
 
jsvorCommented:
What Linux version are you running?  On Redhat the network settings are found under /etc/sysconfig/networking/devices/.
0
 
rindiCommented:
On CentOS (Redhat clone), the script that is started for networking is /etc/init.d/networking.
0
 
jsvorCommented:
if I ever have to restart my network connections I always use '/etc/rc.d/init.d/network restart'
0
 
expertblrAuthor Commented:
Thanks all.
0

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now