summaryrefslogtreecommitdiffstats
path: root/encap/src/bcfg2-site
diff options
context:
space:
mode:
authorDaniel Joseph Barnhart Clark <dclark@pobox.com>2007-06-28 23:34:43 +0000
committerDaniel Joseph Barnhart Clark <dclark@pobox.com>2007-06-28 23:34:43 +0000
commitf137a686b595eac53a3d6ee3c060b81b99b61406 (patch)
tree2ce5cfcdf1e400b16c52c8334b44beeab73e3e15 /encap/src/bcfg2-site
parent07075b4e4d59905380e274f233e903c179e24bf8 (diff)
downloadbcfg2-f137a686b595eac53a3d6ee3c060b81b99b61406.tar.gz
bcfg2-f137a686b595eac53a3d6ee3c060b81b99b61406.tar.bz2
bcfg2-f137a686b595eac53a3d6ee3c060b81b99b61406.zip
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
Diffstat (limited to 'encap/src/bcfg2-site')
-rwxr-xr-xencap/src/bcfg2-site/bcfg2-site-RENAME/sbin/ost-bcfg2.sh7
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