what is the difference between service network reload and service network restart ?
when I want to change IP address on RHEL, I edit the files in /etc/sysconfig/network-scripts/ifcfg-ethX and then do service network restart or reload
Both options work OK for me, but what is the difference between them? When is it better to use service network reload ? When is it better to use service network restart ? Thanx in advance. |
Often they are the same. I think for the network service this is the case because ifdown is called on the interfaces followed by ifup. Other services like xinetd might reload the config without restarting.
|
Is it then correct to say that restart will do ifup/ifdown
but reload will not do ifup/ifdown ? |
No, I think "service network reload" will call ifdown / ifup. You can try it yourself. Also, you can read the service script. It depends on the particular service script and the binary that is called. The reload option for some services might be included for completeness but it may be restart that is called.
Here is an example from SuSE: Code:
reload) |
All times are GMT -5. The time now is 01:18 PM. |