* [ptxdist] [PATCH] thttpd: Remove leftovers from package removal
@ 2025-12-11 9:26 Alexander Dahl via ptxdist
2025-12-12 14:52 ` [ptxdist] [APPLIED] " Michael Olbrich
0 siblings, 1 reply; 2+ messages in thread
From: Alexander Dahl via ptxdist @ 2025-12-11 9:26 UTC (permalink / raw)
To: ptxdist; +Cc: Alexander Dahl, Michael Olbrich
Those files were installed to target by old rules/thttpd.make,
but that is long gone.
Fixes: e9c62e81d29f ("thttpd: remove old package")
Signed-off-by: Alexander Dahl <ada@thorsis.com>
---
projectroot/etc/init.d/thttpd | 52 ---------------------------------
projectroot/var/www/thttpd.html | 17 -----------
2 files changed, 69 deletions(-)
delete mode 100644 projectroot/etc/init.d/thttpd
delete mode 100644 projectroot/var/www/thttpd.html
diff --git a/projectroot/etc/init.d/thttpd b/projectroot/etc/init.d/thttpd
deleted file mode 100644
index 51102b9d0..000000000
--- a/projectroot/etc/init.d/thttpd
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/bin/sh
-#
-# thttpd
-#
-
-PREFIX="thttpd: "
-THISFILE=$0
-DOCUMENTROOT="/var/www"
-thttpd="/usr/sbin/thttpd"
-PIDFILE="/var/run/thttpd.pid"
-LOGFILE="/var/log/thttpd.log"
-
-usage() {
- echo "${PREFIX}usage: $THISFILE [start|stop]"
-}
-
-case $1 in
-
- start)
- echo "${PREFIX} starting"
- if [ -e "$PIDFILE" ]; then
- echo "${PREFIX} warning: another thttpd seems to be running, trying to kill it"
- kill -9 `cat $PIDFILE`
- rm -f $PIDFILE
- fi
- $thttpd -d $DOCUMENTROOT -u www -nor -nos -p 80 -c '**.cgi' -i $PIDFILE -l $LOGFILE
- if [ "$?" != "0" ]; then
- echo "${PREFIX} error, could not start server"
- rm -f $PIDFILE
- else
- echo "${PREFIX} done"
- fi
- ;;
-
- stop)
- if [ -e "$PIDFILE" ]; then
- echo "${PREFIX} stopping"
- kill -USR1 `cat $PIDFILE`
- rm -f $PIDFILE
- echo "${PREFIX} done"
- else
- echo "${PREFIX} not running"
- fi
- ;;
-
- *)
-
- usage
- exit 1
- ;;
-
-esac
diff --git a/projectroot/var/www/thttpd.html b/projectroot/var/www/thttpd.html
deleted file mode 100644
index 78d520e93..000000000
--- a/projectroot/var/www/thttpd.html
+++ /dev/null
@@ -1,17 +0,0 @@
-<!-- This is a small demo to show thttpd is running on your system -->
-<HTML>
-<HEAD><TITLE>thttpd is running</TITLE></HEAD>
-<BODY BGCOLOR="#99cc99" TEXT="#000000" LINK="#2020ff" VLINK="#4040cc">
-
-<H3>thttpd is running</H3>
-
-<P>
-Looks like you got it working. Congrats.
-</P>
-
-<P>
-Here's a link to the <A HREF="http://www.acme.com/software/thttpd/">thttpd web pages</A>.
-</P>
-
-</BODY>
-</HTML>
base-commit: fd0dc47b258aac09ab961199a3c00ecddf98f244
--
2.47.3
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ptxdist] [APPLIED] thttpd: Remove leftovers from package removal
2025-12-11 9:26 [ptxdist] [PATCH] thttpd: Remove leftovers from package removal Alexander Dahl via ptxdist
@ 2025-12-12 14:52 ` Michael Olbrich
0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2025-12-12 14:52 UTC (permalink / raw)
To: ptxdist; +Cc: Alexander Dahl
Thanks, applied as 5e1afb07c9633cc7942f70c5fffb3ca1cedfb6bf.
Michael
[sent from post-receive hook]
On Fri, 12 Dec 2025 15:52:17 +0100, Alexander Dahl <ada@thorsis.com> wrote:
> Those files were installed to target by old rules/thttpd.make,
> but that is long gone.
>
> Fixes: e9c62e81d29f ("thttpd: remove old package")
> Signed-off-by: Alexander Dahl <ada@thorsis.com>
> Message-Id: <20251211092628.1227497-1-ada@thorsis.com>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
>
> diff --git a/projectroot/etc/init.d/thttpd b/projectroot/etc/init.d/thttpd
> deleted file mode 100644
> index 51102b9d0f60..000000000000
> --- a/projectroot/etc/init.d/thttpd
> +++ /dev/null
> @@ -1,52 +0,0 @@
> -#!/bin/sh
> -#
> -# thttpd
> -#
> -
> -PREFIX="thttpd: "
> -THISFILE=$0
> -DOCUMENTROOT="/var/www"
> -thttpd="/usr/sbin/thttpd"
> -PIDFILE="/var/run/thttpd.pid"
> -LOGFILE="/var/log/thttpd.log"
> -
> -usage() {
> - echo "${PREFIX}usage: $THISFILE [start|stop]"
> -}
> -
> -case $1 in
> -
> - start)
> - echo "${PREFIX} starting"
> - if [ -e "$PIDFILE" ]; then
> - echo "${PREFIX} warning: another thttpd seems to be running, trying to kill it"
> - kill -9 `cat $PIDFILE`
> - rm -f $PIDFILE
> - fi
> - $thttpd -d $DOCUMENTROOT -u www -nor -nos -p 80 -c '**.cgi' -i $PIDFILE -l $LOGFILE
> - if [ "$?" != "0" ]; then
> - echo "${PREFIX} error, could not start server"
> - rm -f $PIDFILE
> - else
> - echo "${PREFIX} done"
> - fi
> - ;;
> -
> - stop)
> - if [ -e "$PIDFILE" ]; then
> - echo "${PREFIX} stopping"
> - kill -USR1 `cat $PIDFILE`
> - rm -f $PIDFILE
> - echo "${PREFIX} done"
> - else
> - echo "${PREFIX} not running"
> - fi
> - ;;
> -
> - *)
> -
> - usage
> - exit 1
> - ;;
> -
> -esac
> diff --git a/projectroot/var/www/thttpd.html b/projectroot/var/www/thttpd.html
> deleted file mode 100644
> index 78d520e931dc..000000000000
> --- a/projectroot/var/www/thttpd.html
> +++ /dev/null
> @@ -1,17 +0,0 @@
> -<!-- This is a small demo to show thttpd is running on your system -->
> -<HTML>
> -<HEAD><TITLE>thttpd is running</TITLE></HEAD>
> -<BODY BGCOLOR="#99cc99" TEXT="#000000" LINK="#2020ff" VLINK="#4040cc">
> -
> -<H3>thttpd is running</H3>
> -
> -<P>
> -Looks like you got it working. Congrats.
> -</P>
> -
> -<P>
> -Here's a link to the <A HREF="http://www.acme.com/software/thttpd/">thttpd web pages</A>.
> -</P>
> -
> -</BODY>
> -</HTML>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-12-12 14:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-11 9:26 [ptxdist] [PATCH] thttpd: Remove leftovers from package removal Alexander Dahl via ptxdist
2025-12-12 14:52 ` [ptxdist] [APPLIED] " Michael Olbrich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox