Re: [systemd-devel] Unable to get service to wait for a mount before starting

2024-11-10 Thread Andrei Borzenkov
10.11.2024 17:53, Adam Nielsen wrote: network-online.target by itself does absolutely nothing. You are expected to have some service that is ordered Before=network-online.target and actually waits until network is online. Standard network management applications that asynchronously configure inte

Re: [systemd-devel] Unable to get service to wait for a mount before starting

2024-11-10 Thread Adam Nielsen
> network-online.target by itself does absolutely nothing. You are > expected to have some service that is ordered > Before=network-online.target and actually waits until network is online. > Standard network management applications that asynchronously configure > interfaces (NetworkManager, sy

Re: [systemd-devel] Unable to get service to wait for a mount before starting

2024-11-10 Thread Andrei Borzenkov
10.11.2024 15:20, Adam Nielsen wrote: I'm not sure what you mean by not having a proper network-online.target implementation. I'm using the one distributed with systemd. There aren't any other versions or overrides for it in use. The unit in question specifies "After=network-online.target".

Re: [systemd-devel] Unable to get service to wait for a mount before starting

2024-11-10 Thread Adam Nielsen
I'm replying to all three messages in one to avoid spamming the list: On Tue, 29 Oct 2024 21:39:12 +0300 Andrei Borzenkov wrote: > > server:/path /mnt/server/path nfs4 > > x-gvfs-hide,noauto,x-systemd.automount,timeo=15,soft,proto=tcp 0 0 > > /mnt/server/path/subfolder /mnt/share none > > bind

Re: [systemd-devel] Unable to get service to wait for a mount before starting

2024-10-29 Thread Andrei Borzenkov
29.10.2024 10:03, Adam Nielsen wrote: I tried using RequiresMountsFor=/mnt/share however again, if it runs too early in the boot process the mount is not there and the unit fails to start, and is not retried (logs just say "Job myservice.service/start failed with result 'dependency'.") Requires

Re: [systemd-devel] Unable to get service to wait for a mount before starting

2024-10-29 Thread Henti Smith
On Tue, 29 Oct 2024 at 02:50, Adam Nielsen wrote: > Hi all, > > I'm having some problems getting a systemd unit to start during system > boot. Can anyone advise what I'm doing wrong? > > The service starts fine if I run `systemctl start myservice`, the issue > is that it fails to start during bo

Re: [systemd-devel] Unable to get service to wait for a mount before starting

2024-10-29 Thread Mantas Mikulėnas
On Tue, Oct 29, 2024 at 4:50 AM Adam Nielsen wrote: > Hi all, > > I'm having some problems getting a systemd unit to start during system > boot. Can anyone advise what I'm doing wrong? > > The service starts fine if I run `systemctl start myservice`, the issue > is that it fails to start during

Re: [systemd-devel] Unable to get service to wait for a mount before starting

2024-10-29 Thread Adam Nielsen
> > I tried using RequiresMountsFor=/mnt/share however again, if it runs too > > early in the boot process the mount is not there and the unit fails to > > start, and is not retried (logs just say "Job myservice.service/start > > failed with result 'dependency'.") > > RequiresMountsFor only works

Re: [systemd-devel] Unable to get service to wait for a mount before starting

2024-10-28 Thread Andrei Borzenkov
On Tue, Oct 29, 2024 at 5:50 AM Adam Nielsen wrote: > > I tried using RequiresMountsFor=/mnt/share however again, if it runs too > early in the boot process the mount is not there and the unit fails to > start, and is not retried (logs just say "Job myservice.service/start > failed with result 'de

[systemd-devel] Unable to get service to wait for a mount before starting

2024-10-28 Thread Adam Nielsen
Hi all, I'm having some problems getting a systemd unit to start during system boot. Can anyone advise what I'm doing wrong? The service starts fine if I run `systemctl start myservice`, the issue is that it fails to start during boot. The service runs off a network share, so if it starts too e