From f137a686b595eac53a3d6ee3c060b81b99b61406 Mon Sep 17 00:00:00 2001 From: Daniel Joseph Barnhart Clark Date: Thu, 28 Jun 2007 23:34:43 +0000 Subject: EncapPackages: svlogd unlike multilog doesn't auto-create the directory it needs if it isn't there. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3383 ce84e21b-d406-0410-9b95-82705330c041 --- encap/src/bcfg2-site/bcfg2-site-RENAME/sbin/ost-bcfg2.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'encap/src/bcfg2-site') 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 -- cgit v1.2.3-1-g7c22