case "$1" in
start)
echo -n "Starting thttpd"
- start-stop-daemon --start --quiet --exec $thttpd
+ start-stop-daemon --start --quiet --exec $thttpd -- -d @@SRVDIR
echo "."
;;
stop)
echo "."
;;
reload|force-reload)
- start-stop-daemon --stop --quiet --signal 1 --exec $thttpd
+ start-stop-daemon --stop --quiet --signal 1 --exec $thttpd
;;
restart)
echo -n "Stopping thttpd"
- start-stop-daemon --stop --quiet --exec $thttpd
+ start-stop-daemon --stop --quiet --exec $thttpd -- -d @@SRVDIR
echo "."
echo -n "Waiting for thttpd to die off"
for i in 1 2 3 ;
done
echo ""
echo -n "Starting thttpd"
- start-stop-daemon --start --quiet --exec $thttpd
+ start-stop-daemon --start --quiet --exec $thttpd -- -d @@SRVDIR
echo "."
;;
*)
LICENSE = "BSD"
MAINTAINER = "Chris Larson <kergoth@handhelds.org>"
HOMEPAGE = "http://www.acme.com/software/thttpd/"
-PR="r1"
+PR="r2"
SRC_URI = "http://www.acme.com/software/thttpd/thttpd-2.25b.tar.gz \
file://install.patch;patch=1 \
do_install_append () {
install -d "${D}${sysconfdir}/init.d"
- install -c -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/thttpd
+ cat ${WORKDIR}/init | sed -e 's,@@SRVDIR,${servicedir}/www,g' > ${WORKDIR}/thttpd
+ install -c -m 755 ${WORKDIR}/thttpd ${D}${sysconfdir}/init.d/thttpd
}