dhcpd and systemd
Sam Varshavchik
mrsam at courier-mta.com
Thu Jul 17 10:57:34 UTC 2014
Ian Chapman writes:
> Hi,
>
> Dhcpd on my server has suddenly started taking to start before the IP
> address (statically assigned) has been configured on the network interface
> and consequently bombs out. The systemd service for dhcpd has
>
> After=network.target
>
>
> should this be network-online.target?
Won't make a difference.
Welcome to the systemd fan club.
Install the following file as /etc/systemd/system/wait-for-network.service
[Unit]
Description=Wait for network ports to be initialized
Before=network.target network-online.target
After=network.service
Wants=network.target
[Service]
Type=oneshot
ExecStart=/usr/bin/true
[Install]
WantedBy=multi-user.target
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.fedoraproject.org/pipermail/users/attachments/20140717/6bb93c99/attachment.sig>
More information about the users
mailing list