Skip to content

Commit

Permalink
update for log output
Browse files Browse the repository at this point in the history
  • Loading branch information
ralfyang committed Apr 21, 2016
1 parent 0863c3c commit 3803972
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions 1_zinst_starters_package/zinst
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ ZinstSourceDir="$ZinstBaseRoot/vault/Source"
## ENV LD_LIBRARY_PATH /lib-override

## Base information
VERSION=5.1.2
VERSION=5.1.3
zinst_group="wheel"
sudo_base="sudo"
zinst_log="/dev/null"
Expand Down Expand Up @@ -1944,8 +1944,7 @@ ColorDark="30"
#$sudo_base $ServiceDaemonDir/$DaemonC $CommandX
$sudo_base service $DaemonC $CommandX
else
#$sudo_base $ServiceDaemonDir/$DaemonC $CommandX &> $ZinstBaseRoot/vault/Source/Daemon_ctrl.log
$sudo_base service $DaemonC $CommandX &> $ZinstBaseRoot/vault/Source/Daemon_ctrl.log
$sudo_base service $DaemonC $CommandX | tee $ZinstBaseRoot/vault/Source/Daemon_ctrl.log
fi
DaemLog=`$sudo_base cat $ZinstBaseRoot/vault/Source/Daemon_ctrl.log |tail -1`
Daemon_S=$DaemLog
Expand All @@ -1962,7 +1961,7 @@ ColorDark="30"
:
fi
DaemLog=$Daemon_S
$sudo_base cat $ZinstBaseRoot/vault/Source/Daemon_ctrl.log 2> /dev/null
## Replaced by tee $sudo_base cat $ZinstBaseRoot/vault/Source/Daemon_ctrl.log 2> /dev/null

## Checking the daemon
sleep 1
Expand Down

0 comments on commit 3803972

Please sign in to comment.