diff options
author | Ole Troan <ot@cisco.com> | 2019-08-19 14:51:45 +0200 |
---|---|---|
committer | Andrew Yourtchenko <ayourtch@gmail.com> | 2019-08-20 12:31:06 +0000 |
commit | d991a798ff5eb6d151b6641e61fefc6315bab0ac (patch) | |
tree | e0468584656a5b0e88ef492e62530cd82e3e9be9 /src/vlib | |
parent | 4ecbf105a4290de9917b1ded14b0854c68cbd655 (diff) |
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 <ot@cisco.com>
Diffstat (limited to 'src/vlib')
-rwxr-xr-x | src/vlib/unix/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; |