Created
October 29, 2016 11:41
-
-
Save raorn/419e046aab91ee8977c06002d3bdc39c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=/etc/resolv.conf symlink for systemd-resolved.service | |
PartOf=systemd-resolved.service | |
[Service] | |
Type=oneshot | |
RemainAfterExit=true | |
ExecStart=/usr/bin/ln -sf ../run/systemd/resolve/resolv.conf /etc/resolv.conf | |
ExecStop=/usr/bin/rm -f /etc/resolv.conf | |
ExecStop=/usr/bin/touch /etc/resolv.conf | |
[Install] | |
RequiredBy=systemd-resolved.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment