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
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org

Reply via email to