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

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

@ -1,5 +1,5 @@
#! /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,
# while checking for removal of activation by external script
@ -38,7 +38,7 @@ syslog_notice "main loop started"
while [ -f ${ACTIVE} ]
do
syslog_notice "${SCRIPT} started"
${SCRIPT} >nohup.out 2>&1
${SCRIPT} >>nohup.out 2>&1
syslog_notice "${SCRIPT} ended"
sleep 1
done

Loading…
Cancel
Save