Custom systemd service unit extends boot time

Hello!

Recently I created a systemd service with the help of this tutorial: https://archived.forum.manjaro.org/t/writing-systemd-service-units/60350/102

systemd-analzye blame shows me this: 15.036s network-restart.service.

Why is the unit taking so long?
Any ideas?

There is a ExecStartPre which runs a sleep command for 15 seconds, if you use the exact same unit file.

It will probably not work without it. However you could try to use less seconds ( 10 for example). But it can only run after the initial network config is set up, so it needs to wait a little bit.

1 Like

Thank you!
This was the cause!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.