From 158377f3c11418bc4b43f7b04eb3f6ee36b5b4a9 Mon Sep 17 00:00:00 2001 From: Guido Trotter <ultrotter@google.com> Date: Fri, 4 Jun 2010 17:20:43 +0100 Subject: [PATCH] ensure-dirs: don't fail if no rapi log is present Sometimes a node has never been a master. Or ran rapi. In that case we need to create the file (because if later rapi gets started, it won't be able to create it itself). Signed-off-by: Guido Trotter <ultrotter@google.com> Reviewed-by: Iustin Pop <iustin@google.com> --- daemons/ensure-dirs.in | 1 + 1 file changed, 1 insertion(+) diff --git a/daemons/ensure-dirs.in b/daemons/ensure-dirs.in index b778ff198..c9de87bc8 100644 --- a/daemons/ensure-dirs.in +++ b/daemons/ensure-dirs.in @@ -47,6 +47,7 @@ _ensure_rundir() { _ensure_logdir() { _ensure_dir "${GNTLOGDIR}" 0770 "$(_fileset_owner "daemons")" + touch "${GNTLOGDIR}/rapi-daemon.log" chown $(_fileset_owner "rapi") "${GNTLOGDIR}/rapi-daemon.log" } -- GitLab