I want to start a systemd service (dhcpd) , but only if a link to the
internet is present. I don't want the service to start on boot.
systemctl start <service> doesn't work unless the service is enabled.
This works, but it's very kludgy:
if <link to internet>
systemctl enable <service>
systemctl start <service>
systemctl disable <service>
fi
Any better ideas ?
sean
Show replies by date