summaryrefslogtreecommitdiff
path: root/src/network/networkd.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-02-27 01:24:05 +0100
committerTom Gundersen <teg@jklm.no>2014-02-28 01:01:13 +0100
commitfe8db0c5ee3365a2fc80ee7ebffa238f9a0a2ae2 (patch)
tree51d408aaec8fa6acd19c51839cd50618c9a00321 /src/network/networkd.c
parentc594cccee264cfd98f183ae6ec289b11e70f2d6c (diff)
sd-network: add new library
This is similar to sd-login, but exposes the state of networkd rather than logind. Include it in libsystemd-dhcp and rename it to libsystemd-network.
Diffstat (limited to 'src/network/networkd.c')
-rw-r--r--src/network/networkd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/network/networkd.c b/src/network/networkd.c
index 00e9a5f3da..a80740bbea 100644
--- a/src/network/networkd.c
+++ b/src/network/networkd.c
@@ -40,6 +40,11 @@ int main(int argc, char *argv[]) {
goto out;
}
+ /* Always create the directories people can create inotify
+ * watches in. */
+ mkdir_label("/run/systemd/network/links", 0755);
+ mkdir_label("/run/systemd/network/leases", 0755);
+
r = manager_new(&m);
if (r < 0) {
log_error("Could not create manager: %s", strerror(-r));