The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / mongoose / S85mongoose
1 #!/bin/sh
2 #
3 # Start/stop the mongoose HTTP server
4 #
5
6 set -e
7
8 PATH=/sbin:/bin:/usr/sbin:/usr/bin
9 NAME=mongoose
10 DESC="Mongoose HTTP server"
11
12 DAEMON=`which mongoose`
13 OPTIONS="-document_root /var/www -listening_port 80"
14
15 [ -e /etc/default/mongoose ] && . /etc/default/mongoose
16
17 case "$1" in
18   start)
19         echo "Starting $DESC:"
20         start-stop-daemon -S -x "$DAEMON" -b -- $OPTIONS
21         echo "$NAME."
22         ;;
23   stop)
24         echo -n "Stopping $DESC: "
25         start-stop-daemon -K -x "$DAEMON"
26         echo "$NAME."
27         ;;
28   restart|force-reload)
29         echo -n "Restarting $DESC: "
30         start-stop-daemon -K -x "$DAEMON"
31         sleep 1
32         start-stop-daemon -S -x "$DAEMON" -b -- $OPTIONS
33         echo "$NAME."
34         ;;
35   *)
36         echo "Usage: $0 {start|stop|restart|force-reload}" >&2
37         exit 1
38         ;;
39 esac
40
41 exit 0