summaryrefslogtreecommitdiff
path: root/src/network/networkd.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-06-03 18:57:47 +0200
committerTom Gundersen <teg@jklm.no>2014-06-03 18:58:00 +0200
commit85b5673b337048fa881a5afb1d00d1a7b95950fb (patch)
treecad0470eb05466f590b6210a90950015a833ebbc /src/network/networkd.c
parente918a1b5a94f270186dca59156354acd2a596494 (diff)
networkd: split runtime config dir from state dir
Configuration will be in root:root /run/systemd/network and state will be in systemd-network:systemd-network /run/systemd/netif This matches what we do for logind's seat/session state.
Diffstat (limited to 'src/network/networkd.c')
-rw-r--r--src/network/networkd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/network/networkd.c b/src/network/networkd.c
index d8f31a490d..d6075359c8 100644
--- a/src/network/networkd.c
+++ b/src/network/networkd.c
@@ -52,17 +52,17 @@ int main(int argc, char *argv[]) {
/* Always create the directories people can create inotify
* watches in. */
- r = mkdir_safe_label("/run/systemd/network", 0755, uid, gid);
+ r = mkdir_safe_label("/run/systemd/netif", 0755, uid, gid);
if (r < 0)
log_error("Could not create runtime directory: %s",
strerror(-r));
- r = mkdir_safe_label("/run/systemd/network/links", 0755, uid, gid);
+ r = mkdir_safe_label("/run/systemd/netif/links", 0755, uid, gid);
if (r < 0)
log_error("Could not create runtime directory 'links': %s",
strerror(-r));
- r = mkdir_safe_label("/run/systemd/network/leases", 0755, uid, gid);
+ r = mkdir_safe_label("/run/systemd/netif/leases", 0755, uid, gid);
if (r < 0)
log_error("Could not create runtime directory 'leases': %s",
strerror(-r));