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
diff --git a/cirros-testvm/src-cirros/buildroot-2015.05/package/mongoose/S85mongoose b/cirros-testvm/src-cirros/buildroot-2015.05/package/mongoose/S85mongoose
new file mode 100755 (executable)
index 0000000..98e537f
--- /dev/null
@@ -0,0 +1,41 @@
+#!/bin/sh
+#
+# Start/stop the mongoose HTTP server
+#
+
+set -e
+
+PATH=/sbin:/bin:/usr/sbin:/usr/bin
+NAME=mongoose
+DESC="Mongoose HTTP server"
+
+DAEMON=`which mongoose`
+OPTIONS="-document_root /var/www -listening_port 80"
+
+[ -e /etc/default/mongoose ] && . /etc/default/mongoose
+
+case "$1" in
+  start)
+       echo "Starting $DESC:"
+       start-stop-daemon -S -x "$DAEMON" -b -- $OPTIONS
+       echo "$NAME."
+       ;;
+  stop)
+       echo -n "Stopping $DESC: "
+       start-stop-daemon -K -x "$DAEMON"
+       echo "$NAME."
+       ;;
+  restart|force-reload)
+       echo -n "Restarting $DESC: "
+       start-stop-daemon -K -x "$DAEMON"
+       sleep 1
+       start-stop-daemon -S -x "$DAEMON" -b -- $OPTIONS
+       echo "$NAME."
+       ;;
+  *)
+       echo "Usage: $0 {start|stop|restart|force-reload}" >&2
+       exit 1
+       ;;
+esac
+
+exit 0