1

Run custom systemd service before NetworkManager

view story
linux-howto

https://bbs.archlinux.org – Hi, I am trying to write a systemd service that runs and completes before NetworkManager.service starts.I tried this:[Unit] Description=Custom service test Before=NetworkManager.service [Service] Type=oneshot ExecStart=/usr/bin/echo Custom service test 1 ExecStart=/usr/bin/sleep 5 ExecStart=/usr/bin/echo Custom service test 2 [Install] WantedBy=network.targetWhile the custom service does start, I got this rather strange output:Jan 22 00:12:46 localhost echo[1166]: Custom service test 1 Jan 22 00:12:48 localhost kernel: NVRM: GPU at 0000:02:00: GPU-(snip) ... some unrelated messages (acpid, k (HowTos)