diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2013-04-18 06:39:38 +0000 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-04-19 02:45:28 +0200 |
commit | f593c454bc60d1837bf1f1c97521850efb438f68 (patch) | |
tree | c5aeb13dc844fd6b967767212b750a7dfe7f167a /meta-webserver/recipes-httpd/nostromo/files/nostromo | |
parent | 9955ac116e1f57de4c1fb01a0fa47e9591db1d4a (diff) | |
download | meta-openembedded-f593c454bc60d1837bf1f1c97521850efb438f68.tar.gz |
nostromo: move to meta-webserver and tweak
* Add SUMMARY
* Move SRC_URI checksums next to SRC_URI
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-webserver/recipes-httpd/nostromo/files/nostromo')
-rw-r--r-- | meta-webserver/recipes-httpd/nostromo/files/nostromo | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/meta-webserver/recipes-httpd/nostromo/files/nostromo b/meta-webserver/recipes-httpd/nostromo/files/nostromo new file mode 100644 index 0000000000..8a28868829 --- /dev/null +++ b/meta-webserver/recipes-httpd/nostromo/files/nostromo @@ -0,0 +1,34 @@ +#!/bin/sh + +PATH=/sbin:/bin:/usr/sbin:/usr/bin +DAEMON=nhttpd +NAME=nhttpd +DESC="Nostromo Web Server" +OPTS="-c /etc/nhttpd.conf" + +case "$1" in + start) + echo -n "Starting $DESC: " + start-stop-daemon --start -x "$DAEMON" -- $OPTS + echo "$NAME." + ;; + stop) + echo -n "Stopping $DESC: " + start-stop-daemon --stop -x "$DAEMON" + echo "$NAME." + ;; + restart|force-reload) + echo -n "Restarting $DESC: " + start-stop-daemon --stop -x "$DAEMON" + sleep 1 + start-stop-daemon --start -x "$DAEMON" -- $OPTS + echo "$NAME." + ;; + *) + N=/etc/init.d/$NAME + echo "Usage: $N {start|stop|restart|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0 |