Service after-local fails to start

From Levy

Revision as of 11:41, 15 January 2020 by Louis (talk | contribs) (Get the after-local service to start on OpenSuSE 15.1)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

On OpenSuSE 15.1 the systemd service after-local fails to start. This is because it relies on the deprecated route command. You can check this by running the following commands:

systemctl restart after-local
journalctl -xe

In the output of the journalctl command we see:

-- Unit after-local.service has finished starting up.
-- 
-- The start-up result is done.
Jan 15 12:33:51 nami after.local[27906]: /etc/init.d/after.local: line 16: route: command not found
Jan 15 12:33:51 nami systemd[1]: after-local.service: Main process exited, code=exited, status=127/n/a
Jan 15 12:33:51 nami systemd[1]: after-local.service: Unit entered failed state.
Jan 15 12:33:51 nami systemd[1]: after-local.service: Failed with result 'exit-code'.

Fix this by installing the deprecated network tools on OpenSuSE:

zypper in net-tools-deprecated

After this the after-local should start again.