Reload and force-reload options for network service
Environment
- Red Hat Enterprise Linux 7
- initscripts
Issue
systemctl reload network.service and systemctl force-reload network.service are failing and network service is left in inactive status.
Resolution
The 'reload' and 'force-reload' options are "leftovers" in initscripts by mistake.
These commands will not work for network service at all, and technically they cannot be fixed.
The options are now removed from the network service, so they no longer cause any confusion.
Issue was tracked by This content is not included.Bug 1554690 and is fixed by ERRATA
Diagnostic Steps
Commands are present into /etc/rc.d/init.d/network
# tail -12 /etc/rc.d/init.d/network
restart|reload|force-reload)
cd "$CWD"
$0 stop
$0 start
rc=$?
;;
*)
echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
exit 2
esac
exit $rc
# systemctl reload network
Job for network.service invalid.
# systemctl force-reload network
Job for network.service invalid.
# systemctl status network
● network.service - LSB: Bring up/down networking
Loaded: loaded (/etc/rc.d/init.d/network; bad; vendor preset: disabled)
Active: inactive (dead) since Tue 2018-03-13 08:46:44 CET; 24h ago
Docs: man:systemd-sysv-generator(8)
Process: 32088 ExecReload=/etc/rc.d/init.d/network reload (code=killed, signal=TERM)
Process: 829 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=0/SUCCESS)
Mar 13 08:46:44 fvm-rhel-7-4-215 network[32088]: Stopping network (via systemctl):
Mar 13 08:46:44 fvm-rhel-7-4-215 systemd[1]: Stopped LSB: Bring up/down networking.
Mar 13 08:49:49 fvm-rhel-7-4-215 systemd[1]: Unit network.service cannot be reloaded because it is inactive.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.