summaryrefslogtreecommitdiff
path: root/packages/wwwoffle/files/wwwoffle.init
blob: 7eac239a3ea2336e8f800e52507507834593a408 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

case "$1" in
start)
  /usr/sbin/wwwoffled
  ;;
restart)
  /usr/bin/wwwoffle -kill
  /usr/sbin/wwwoffled >/dev/null 2>&1
  ;;
reload|force-reload)
  /usr/bin/wwwoffle -config
  ;;
stop)
  /usr/bin/wwwoffle -kill
  ;;
*)
  echo "Usage: /etc/init.d/wwwoffle {start|stop|restart|reload|force-reload}"
  exit 1
esac

exit 0