Make client script append to rather than overwrite the nohup.out file.

pull/1/head
Wytze van der Raay 15 years ago
parent ebe8a08441
commit ae5cbde8b7

@ -1,5 +1,5 @@
#! /bin/bash #! /bin/bash
# @(#)(CAcert) $Id: commdaemon,v 1.1 2009/12/28 15:09:24 wytze Exp $ # @(#)(CAcert) $Id: commdaemon,v 1.2 2009/12/28 15:14:40 wytze Exp $
# commdaemon - script to run CommModule script in a loop, # commdaemon - script to run CommModule script in a loop,
# while checking for removal of activation by external script # while checking for removal of activation by external script
@ -38,7 +38,7 @@ syslog_notice "main loop started"
while [ -f ${ACTIVE} ] while [ -f ${ACTIVE} ]
do do
syslog_notice "${SCRIPT} started" syslog_notice "${SCRIPT} started"
${SCRIPT} >nohup.out 2>&1 ${SCRIPT} >>nohup.out 2>&1
syslog_notice "${SCRIPT} ended" syslog_notice "${SCRIPT} ended"
sleep 1 sleep 1
done done

Loading…
Cancel
Save