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>
This commit is contained in:
David Lamparter 2018-12-17 19:08:02 +01:00
parent 829d32552b
commit b7d492f295

View 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"