Aw: Re: systemd automount unit: run only when server is reachable

2022-09-14 Thread Jürgen Bausa
Hi David, if I understood you correctly you propose to run a script in the background to check for the condition I am interested in (is the nfs server available?) and do the changes accordingly. In fact I am doing this at the moment. But I think its an ugly hack and thought a better solution s

Aw: Re: systemd automount unit: run only when server is reachable

2022-09-13 Thread Jürgen Bausa
> Gesendet: Montag, 12. September 2022 um 21:06 Uhr > Von: "Darac Marjal" > An: debian-user@lists.debian.org > Betreff: Re: systemd automount unit: run only when server is reachable > > systemd has a number of Condition* rules which can be added to units: > https://www.freedesktop.org/software/sy

Aw: Re: systemd automount unit: run only when server is reachable

2022-09-12 Thread Jürgen Bausa
Hi Joe, > Gesendet: Montag, 12. September 2022 um 19:05 Uhr > Von: "Joe" > An: debian-user@lists.debian.org > Betreff: Re: systemd automount unit: run only when server is reachable > > > I have a number of shares (samba rather than nfs) listed in /etc/fstab > with the noauto and x-systemd.autom