]> git.proxmox.com Git - mirror_frr.git/commitdiff
tools/frrcommon.sh: actually create /run/frr
authorDavid Lamparter <equinox@diac24.net>
Mon, 17 Dec 2018 18:08:02 +0000 (19:08 +0100)
committerDavid Lamparter <equinox@diac24.net>
Tue, 18 Dec 2018 00:26:12 +0000 (01:26 +0100)
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>
tools/frrcommon.sh.in

index 7278e3f9dff984b4e766a28b5c22c0221f187b20..193eeed299fb76fde9f867fbd4a8fc9851a0b3c0 100644 (file)
@@ -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"