Module: check_mk
Branch: master
Commit: 9c45263d4714f4d5f0d49b2d9e5b615c1b774faa
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9c45263d4714f4…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Dec 8 14:29:37 2014 +0100
check_mk_agent.linux: prevent creation of nohup.out by cached checks
---
agents/check_mk_agent.linux | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/agents/check_mk_agent.linux b/agents/check_mk_agent.linux
index a0d7b78..3dbaaa1 100755
--- a/agents/check_mk_agent.linux
+++ b/agents/check_mk_agent.linux
@@ -100,7 +100,7 @@ function run_cached () {
# Cache file outdated and new job not yet running? Start it
if [ -z "$USE_CACHEFILE" -a ! -e "$CACHEFILE.new" ] ; then
- echo "set -o noclobber ; exec > \"$CACHEFILE.new\" || exit 1 ;
$CMDLINE && mv \"$CACHEFILE.new\" \"$CACHEFILE\" || rm -f
\"$CACHEFILE\" \"$CACHEFILE.new\"" | nohup bash 2>/dev/null
&
+ echo "set -o noclobber ; exec > \"$CACHEFILE.new\" || exit 1 ;
$CMDLINE && mv \"$CACHEFILE.new\" \"$CACHEFILE\" || rm -f
\"$CACHEFILE\" \"$CACHEFILE.new\"" | nohup bash >/dev/null
2>&1 &
fi
}