Make client script append to rather than overwrite the nohup.out file.
This commit is contained in:
parent
ebe8a08441
commit
ae5cbde8b7
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue