diff options
author | 2013-04-18 06:39:37 +0000 | |
---|---|---|
committer | 2013-04-19 02:45:28 +0200 | |
commit | 9955ac116e1f57de4c1fb01a0fa47e9591db1d4a (patch) | |
tree | 127123048e2f57f027e4175f32f301ccdf18879c /meta-webserver/recipes-httpd/cherokee/cherokee/cherokee.init | |
parent | 73a17ee018a2d26584b3c1b7d4fa4b9906d14b2a (diff) | |
download | meta-openembedded-contrib-9955ac116e1f57de4c1fb01a0fa47e9591db1d4a.tar.gz |
cherokee: move to meta-webserver and tweak
* Set SUMMARY instead of DESCRIPTION
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/cherokee/cherokee/cherokee.init')
-rw-r--r-- | meta-webserver/recipes-httpd/cherokee/cherokee/cherokee.init | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/meta-webserver/recipes-httpd/cherokee/cherokee/cherokee.init b/meta-webserver/recipes-httpd/cherokee/cherokee/cherokee.init new file mode 100644 index 0000000000..93603b84db --- /dev/null +++ b/meta-webserver/recipes-httpd/cherokee/cherokee/cherokee.init @@ -0,0 +1,32 @@ +#!/bin/sh +DAEMON=/usr/sbin/cherokee +CONFIG=/etc/cherokee/cherokee.conf +PIDFILE=/var/run/cherokee.pid +NAME="cherokee" +DESC="Cherokee http server" + +test -r /etc/default/cherokee && . /etc/default/cherokee +test -x "$DAEMON" || exit 0 +test ! -r "$CONFIG" && exit 0 + +case "$1" in + start) + echo "Starting $DESC: " + start-stop-daemon --oknodo -S -x $DAEMON -- -d -C $CONFIG + ;; + + stop) + echo "Stopping $DESC:" + start-stop-daemon -K -p $PIDFILE + ;; + + restart) + $0 stop >/dev/null 2>&1 + $0 start + ;; + + *) + echo "Usage: $0 {start|stop|restart}" + exit 0 + ;; +esac |