From d9301364841b0f77ed77aa6ab313ea498ba0a8ec Mon Sep 17 00:00:00 2001 From: Kai Krakow Date: Sun, 12 Nov 2017 15:55:02 +0100 Subject: [PATCH] Remove process forking from frontend script Now with the patches integrated to filter logging output, we can finally remove forking a subprocess and stop redirecting file descriptors. We instead use exec to replace the process with the final daemon. Signed-off-by: Kai Krakow --- scripts/beesd.in | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/beesd.in b/scripts/beesd.in index fc0a2ea..b4c466b 100755 --- a/scripts/beesd.in +++ b/scripts/beesd.in @@ -115,6 +115,4 @@ fi MNT_DIR="${MNT_DIR//\/\//\/}" -cd $MNT_DIR && @LIBEXEC_PREFIX@/bees ${ARGUMENTS[@]} $OPTIONS "$MNT_DIR" 3>&1 2>&1 - -exit 0 +cd $MNT_DIR && exec @LIBEXEC_PREFIX@/bees ${ARGUMENTS[@]} $OPTIONS "$MNT_DIR"