source: box/trunk/contrib/solaris/bbackupd-smf-method.in @ 2094

Revision 2094, 402 bytes checked in by jamesog, 4 years ago (diff)
  • Move all commands from bin to sbin on Unix platforms
  • Update all associated docs and contributed distribution files
  • Property svn:executable set to *
Line 
1
2PIDFILE=@localstatedir_expanded@/bbackupd.pid
3
4case $1 in
5
6        # SMF arguments (start and restart [really "refresh"])
7'start')
8        @sbindir_expanded@/bbackupd
9        ;;
10
11'restart')
12        if [ -f "$PIDFILE" ]; then
13                /usr/bin/kill -HUP `/usr/bin/cat $PIDFILE`
14        fi
15        ;;
16
17*)
18        echo "Usage: $0 { start | restart }"
19        exit 1
20        ;;
21esac   
22
23exit $?
24
Note: See TracBrowser for help on using the repository browser.