diff options
author | Zhai Edwin <edwin.zhai@intel.com> | 2010-09-28 16:00:25 +0800 |
---|---|---|
committer | Saul Wold <Saul.Wold@intel.com> | 2010-09-28 08:26:53 -0700 |
commit | a1d1e4e47db18607be6158efd993a5ad531ce85e (patch) | |
tree | 9def95d10818551d9dbf843b2d4e6c599f5f1edf /meta/recipes-extended/lighttpd/files/lighttpd | |
parent | ec4d6b989aad5f4564e367c99c62c59f962b57ea (diff) | |
download | poky-a1d1e4e47db18607be6158efd993a5ad531ce85e.tar.gz |
lighttpd: Add 1.4.28 as new recipe.
Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
Diffstat (limited to 'meta/recipes-extended/lighttpd/files/lighttpd')
-rw-r--r-- | meta/recipes-extended/lighttpd/files/lighttpd | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/meta/recipes-extended/lighttpd/files/lighttpd b/meta/recipes-extended/lighttpd/files/lighttpd new file mode 100644 index 0000000000..bf89a60b7d --- /dev/null +++ b/meta/recipes-extended/lighttpd/files/lighttpd | |||
@@ -0,0 +1,34 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | PATH=/sbin:/bin:/usr/sbin:/usr/bin | ||
4 | DAEMON=/usr/sbin/lighttpd | ||
5 | NAME=lighttpd | ||
6 | DESC="Lighttpd Web Server" | ||
7 | OPTS="-f /etc/lighttpd.conf" | ||
8 | |||
9 | case "$1" in | ||
10 | start) | ||
11 | echo -n "Starting $DESC: " | ||
12 | start-stop-daemon --start -x "$DAEMON" -- $OPTS | ||
13 | echo "$NAME." | ||
14 | ;; | ||
15 | stop) | ||
16 | echo -n "Stopping $DESC: " | ||
17 | start-stop-daemon --stop -x "$DAEMON" | ||
18 | echo "$NAME." | ||
19 | ;; | ||
20 | restart|force-reload) | ||
21 | echo -n "Restarting $DESC: " | ||
22 | start-stop-daemon --stop -x "$DAEMON" | ||
23 | sleep 1 | ||
24 | start-stop-daemon --start -x "$DAEMON" -- $OPTS | ||
25 | echo "$NAME." | ||
26 | ;; | ||
27 | *) | ||
28 | N=/etc/init.d/$NAME | ||
29 | echo "Usage: $N {start|stop|restart|force-reload}" >&2 | ||
30 | exit 1 | ||
31 | ;; | ||
32 | esac | ||
33 | |||
34 | exit 0 | ||