diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-08 22:51:41 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-08 22:51:41 +0200 |
commit | 1219bf8a90a7bf8cd3a5363551ef635d51e8fc8e (patch) | |
tree | a21a5fc103bb3bd65ecd85ed22be5228fc54e447 /meta-webserver/recipes-httpd/cherokee/cherokee/cherokee.init | |
download | meta-openembedded-1219bf8a90a7bf8cd3a5363551ef635d51e8fc8e.tar.gz |
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.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 000000000..93603b84d --- /dev/null +++ b/meta-webserver/recipes-httpd/cherokee/cherokee/cherokee.init | |||
@@ -0,0 +1,32 @@ | |||
1 | #!/bin/sh | ||
2 | DAEMON=/usr/sbin/cherokee | ||
3 | CONFIG=/etc/cherokee/cherokee.conf | ||
4 | PIDFILE=/var/run/cherokee.pid | ||
5 | NAME="cherokee" | ||
6 | DESC="Cherokee http server" | ||
7 | |||
8 | test -r /etc/default/cherokee && . /etc/default/cherokee | ||
9 | test -x "$DAEMON" || exit 0 | ||
10 | test ! -r "$CONFIG" && exit 0 | ||
11 | |||
12 | case "$1" in | ||
13 | start) | ||
14 | echo "Starting $DESC: " | ||
15 | start-stop-daemon --oknodo -S -x $DAEMON -- -d -C $CONFIG | ||
16 | ;; | ||
17 | |||
18 | stop) | ||
19 | echo "Stopping $DESC:" | ||
20 | start-stop-daemon -K -p $PIDFILE | ||
21 | ;; | ||
22 | |||
23 | restart) | ||
24 | $0 stop >/dev/null 2>&1 | ||
25 | $0 start | ||
26 | ;; | ||
27 | |||
28 | *) | ||
29 | echo "Usage: $0 {start|stop|restart}" | ||
30 | exit 0 | ||
31 | ;; | ||
32 | esac | ||