diff options
author | David Lamparter <equinox@diac24.net> | 2018-12-17 19:08:02 +0100 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2018-12-18 01:26:12 +0100 |
commit | b7d492f295ce91d5b5cd008fb1c218c0d67dff6d (patch) | |
tree | 5f94d0757447a8c6f425def9547a2dc9b3470097 /tools | |
parent | tools/etc: remove cumulus user from vtysh.conf (diff) | |
download | frr-b7d492f295ce91d5b5cd008fb1c218c0d67dff6d.tar.xz frr-b7d492f295ce91d5b5cd008fb1c218c0d67dff6d.zip |
tools/frrcommon.sh: actually create /run/frr
tmpfiles.d is nice and all, but we can't rely on it. Just create
/run/frr if needed.
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/frrcommon.sh.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/frrcommon.sh.in b/tools/frrcommon.sh.in index 7278e3f9d..193eeed29 100644 --- a/tools/frrcommon.sh.in +++ b/tools/frrcommon.sh.in @@ -135,6 +135,10 @@ daemon_start() { ulimit -n $MAX_FDS > /dev/null 2> /dev/null daemon_prep "$daemon" "$inst" || return 1 + if test ! -d "$V_PATH"; then + mkdir -p "$V_PATH" + chown frr "$V_PATH" + fi eval wrap="\$${daemon}_wrap" bin="$D_PATH/$daemon" |