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

Revision 2094, 401 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 
1PIDFILE=@localstatedir_expanded@/bbstored.pid
2
3case $1 in
4
5        # SMF arguments (start and restart [really "refresh"])
6'start')
7        @sbindir_expanded@/bbstored
8        ;;
9
10'restart')
11        if [ -f "$PIDFILE" ]; then
12                /usr/bin/kill -HUP `/usr/bin/cat $PIDFILE`
13        fi
14        ;;
15
16*)
17        echo "Usage: $0 { start | restart }"
18        exit 1
19        ;;
20esac   
21
22exit $?
23
Note: See TracBrowser for help on using the repository browser.