Project

General

Profile

« Previous | Next » 

Revision 19ad1908

Added by Benoît PECCATTE about 6 years ago

Fixes #10801: With \"rudder agent run\", nothing is logged in /var/rudder/cfengine-community/outputs/

View differences:

share/commands/agent-run
${RUDDER_BIN} agent update "${UPDATE_OPTIONS}"
fi
"${RUDDER_VAR}/cfengine-community/bin/cf-agent" ${VERBOSITY} ${COLOR} -K ${BUNDLE} ${CLASS} | eval ${PRETTY}
# keep same name structure as cf-execd
logfile=$(echo "cf_$(hostname)__$(date +%s)_$(LANG=C date +"%a %b %e %H %M %S %Y")_0" | sed 's/[^a-zA-Z0-9]/_/g')
logdir=/var/rudder/cfengine-community/outputs
ln -sf ${logdir}/${logfile} ${logdir}/previous
"${RUDDER_VAR}/cfengine-community/bin/cf-agent" ${VERBOSITY} ${COLOR} -K ${BUNDLE} ${CLASS} | tee ${logdir}/${logfile} | eval ${PRETTY}

Also available in: Unified diff