summaryrefslogtreecommitdiffstats
path: root/encap/src/bcfg2-site/bcfg2-site-RENAME/sbin/ost-bcfg2.sh
blob: a446e27f07e817f8bd156a56ec001289439a091e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh

#
# ost-bcfg2.sh : Control bcfg2 client via ostiary (wrapper script)
# $Id$
#

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

case $1 in
       dvqn) bcfg2 -d -v -q -n       | $LOG ;;
        dvn) bcfg2 -d -v -n          | $LOG ;;
        dvq) bcfg2 -d -v -q          | $LOG ;;
         dv) bcfg2 -d -v             | $LOG ;;
         vq) bcfg2 -v -q             | $LOG ;;
          v) bcfg2 -v                | $LOG ;; 
    restart) sv restart bcfg2-client | $LOG ;; 
          *) printf "ERROR in $0\n"  | $LOG ;; 
esac

exit 0