aboutsummaryrefslogtreecommitdiff
path: root/system/pommed/rc.pommed
blob: def1086f30d5bf4f2a99dd8a529ba68fed7b8657 (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
29
30
31
32
#!/bin/sh

# Start/stop/restart the pommed service:

pommed_start() {
  /usr/sbin/pommed
}

pommed_stop() {
  killall pommed
}

pommed_restart() {
  pommed_stop
  sleep 1
  pommed_start
}

case "$1" in
'start')
  pommed_start
  ;;
'stop')
  pommed_stop
  ;;
'restart')
  pommed_restart
  ;;
*)
  echo "usage $0 start|stop|restart"
esac