aboutsummaryrefslogtreecommitdiff
path: root/system/yabsm/rc.yabsm
blob: 1d00263a65c1e4257af3891cb71c95461aae3d04 (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
27
28
#!/bin/sh

# start/stop/restart the yabsm daemon.

usage="usage: $0 start|stop|restart"

if [ $# != 1 ]; then
   echo "$usage"
   exit 1
fi

case "$1" in
'start')
  echo "Starting yabsm daemon:  /usr/bin/yabsm"
  /usr/bin/yabsm daemon start
  ;;
'stop')
  echo "Stopping yabsm daemon:  /usr/bin/yabsm"
  /usr/bin/yabsm daemon stop
  ;;
'restart')
  echo "Restarting yabsm daemon:  /usr/bin/yabsm"
  /usr/bin/yabsm daemon restart
  ;;
*)
  echo "$usage"
  exit 1
esac