minus-squaretinsukE@lemmy.worldtoTechnology@lemmy.world•systemd has been a complete, utter, unmitigated successlinkfedilinkEnglisharrow-up4·2 days agoI have a service that pings the server: cat <<EOF | sudo tee /etc/systemd/system/ping-smb.service [Unit] Description=Blocks until pinging 192.168.1.10 succeeds After=network-online.target StartLimitIntervalSec=0 [Service] Type=oneshot ExecStart=ping -c1 192.168.1.10 Restart=on-failure RestartSec=1 [Install] WantedBy=multi-user.target EOF sudo systemctl enable ping-smb.service And then I make the fstab entry depend on it: x-systemd.requires=ping-smb.service linkfedilink
I have a service that pings the server:
And then I make the fstab entry depend on it:
x-systemd.requires=ping-smb.service