Delaying a service on my proxmox

promoxer

Active Member
Apr 21, 2023
250
25
33
```
[Unit]
After=zfs-import.target zfs-mount.service network.target
Wants=zfs-import.target zfs-mount.service
```

Is this the right way to do it? I tried but it seems to stuck waiting indefinitely
 
See man 5 systemd.unit, After ensures that the unit starts after the specified units have fully started, while Wants pulls these units in as a (weak) dependency. If they fail the unit may continue.
It might be that you have to also add network.target into the Wants list.
 
I'd first add it to both and see if that works, otherwise you can analyze the startup sequence with systemd-analyze blame or by looking at the journal and see which services get started when to see where it hangs.