diff options
-rwxr-xr-x | encap/src/bcfg2-site/bcfg2-site-RENAME/sbin/ost-bcfg2.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/encap/src/bcfg2-site/bcfg2-site-RENAME/sbin/ost-bcfg2.sh b/encap/src/bcfg2-site/bcfg2-site-RENAME/sbin/ost-bcfg2.sh index a446e27f0..4f5ccfca2 100755 --- a/encap/src/bcfg2-site/bcfg2-site-RENAME/sbin/ost-bcfg2.sh +++ b/encap/src/bcfg2-site/bcfg2-site-RENAME/sbin/ost-bcfg2.sh @@ -8,10 +8,13 @@ umask 002 exec 2>&1 -LOG="svlogd -tt /usr/local/var/svlogd/bcfg2-client-ostiary" PATH=/usr/local/lib/bcfg2/bin:/usr/local/bin:/usr/bin:/bin export PATH +LOGDIR="/usr/local/var/svlogd/bcfg2-client-ostiary" +test -d $LOGDIR || mkdir $LOGDIR +LOG="svlogd -tt $LOGDIR" + case $1 in dvqn) bcfg2 -d -v -q -n | $LOG ;; dvn) bcfg2 -d -v -n | $LOG ;; @@ -23,4 +26,4 @@ case $1 in *) printf "ERROR in $0\n" | $LOG ;; esac -exit 0
\ No newline at end of file +exit 0 |