chiark / gitweb /
networkd: generate resolv.conf
[elogind.git] / src / network / networkd.c
index 360afba986056e3ceab0eb765ff230c231197488..055200cb005560d8a08997c187fd3bf916ae41ae 100644 (file)
@@ -60,6 +60,13 @@ int main(int argc, char *argv[]) {
         if (r < 0)
                 goto out;
 
+
+        /* write out empty resolv.conf to avoid a
+         * dangling symlink */
+        r = manager_update_resolv_conf(m);
+        if (r < 0)
+                goto out;
+
         sd_notify(false,
                   "READY=1\n"
                   "STATUS=Processing requests...");