From d991a798ff5eb6d151b6641e61fefc6315bab0ac Mon Sep 17 00:00:00 2001 From: Ole Troan Date: Mon, 19 Aug 2019 14:51:45 +0200 Subject: vlib: create unix runtime directory Ensure the runtime directory is created at startup. Default /run/vpp Type: fix Fixes: I53d70939c8125d04a365ac51a6cbf8926dc52adf Change-Id: I6d70364ea756b86768c4dd1f6a9383238ed275c8 Signed-off-by: Ole Troan --- src/vlib/unix/main.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/vlib/unix/main.c') diff --git a/src/vlib/unix/main.c b/src/vlib/unix/main.c index 3ec4c342cf1..42c3064bc32 100755 --- a/src/vlib/unix/main.c +++ b/src/vlib/unix/main.c @@ -500,6 +500,11 @@ unix_config (vlib_main_t * vm, unformat_input_t * input) vlib_default_runtime_dir, 0); } + /* Ensure the runtime directory is created */ + error = vlib_unix_recursive_mkdir ((char *) um->runtime_dir); + if (error) + return error; + error = setup_signal_handlers (um); if (error) return error; -- cgit 1.2.3-korg