[oe] [meta-oe][PATCH] thttpd: Port thttpd from oe-classic.

Joe MacDonald joe at deserted.net
Tue Sep 18 15:39:24 UTC 2012


On Tue, Sep 18, 2012 at 4:38 AM, Koen Kooi <koen at dominion.thruhere.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Op 17-09-12 20:18, Franklin S. Cooper Jr schreef:
>> * Port thttpd recipe from oe-classic to meta-oe.
>
> It should go into meta-networking

Agreed.  Once it's been LSB'd, please put the recipe in
meta-networking/recipes-daemons/

Thanks,
-J.

>
>> Signed-off-by: Franklin S. Cooper Jr <fcooper at ti.com> ---
>
>> diff --git a/meta-oe/recipes-extended/thttpd/thttpd-2.25b/init
>> b/meta-oe/recipes-extended/thttpd/thttpd-2.25b/init new file mode 100644
>> index 0000000..df6d648 --- /dev/null +++
>> b/meta-oe/recipes-extended/thttpd/thttpd-2.25b/init @@ -0,0 +1,47 @@ +#!
>> /bin/sh +# +# This is an init script for openembedded +# Copy it to
>> /etc/init.d/thttpd and type +# > update-rc.d thttpd defaults 60 +# + +
>> +thttpd=/usr/sbin/thttpd +test -x "$thttpd" || exit 0 + + +case "$1" in +
>> start) +    echo -n "Starting thttpd" +    start-stop-daemon --start
>> --quiet --exec $thttpd -- -d @@SRVDIR +    echo "." +    ;; +  stop) +
>> echo -n "Stopping thttpd" +    start-stop-daemon --stop --quiet --exec
>> $thttpd +    echo "." +    ;; +  reload|force-reload) +
>> start-stop-daemon --stop --quiet --signal 1 --exec $thttpd +    ;; +
>> restart) +    echo -n "Stopping 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 ; +    do +        sleep 1 +
>> echo -n "." +    done +    echo "" +    echo -n "Starting thttpd" +
>> start-stop-daemon --start --quiet --exec $thttpd -- -d @@SRVDIR +    echo
>> "." +    ;; +  *) +    echo "Usage: /etc/init.d/thttpd
>> {start|stop|reload|restart|force-reload}" +    exit 1 +esac + +exit 0
>
> And that's not LSB compliant.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.5 (Darwin)
> Comment: GPGTools - http://gpgtools.org
>
> iD8DBQFQWDMXMkyGM64RGpERAuzAAJ44UYtqHx35wKF9m0vy6rDY1d67zwCfbYyv
> dqzWiGMeiAdkWYrHLR9EAt4=
> =hJhu
> -----END PGP SIGNATURE-----
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel



-- 
Joe MacDonald
:wq




More information about the Openembedded-devel mailing list