Hi Natanael,
Nicely done! kernel 3.3.3 8-) , dhcpd, dhcpcd, bind and asterisk 10.3
are running smoothly.
Since I am currently busy working on another package, I'd like to ask
you to apply the patch stated below in order to prevent mini_httpd from
crashing during boot. I am new to GIT and still figuring out how to
commit properly. Meanwhile, I'll have to rely on your help.
Thanks! Kind Regards, Tiger
--- /etc/init.d/mini_httpd
+++ /etc/init.d/mini_httpd
@@ -4,6 +4,7 @@
# $Header:
/var/cvsroot/gentoo-x86/www-servers/mini_httpd/files/mini_httpd.init,v
1.2 2007/08/26 21:20:21 bangert Exp $
pidfile=/var/run/mini_httpd/${SVCNAME}.pid
+logfile=/var/log/mini_httpd/${SVCNAME}.log
depend() {
need net
@@ -12,9 +13,11 @@
start() {
ebegin "Starting $SVCNAME"
+ checkpath -d ${pidfile%/*}
+ checkpath -d ${logfile%/*}
start-stop-daemon --quiet --start --exec /usr/sbin/mini_httpd \
--pidfile $pidfile -- -i $pidfile \
- ${MINI_HTTPD_OPTS:--C /etc/${SVCNAME}.conf -l
/var/log/mini_httpd/${SVCNAME}.log}
+ ${MINI_HTTPD_OPTS:--C /etc/${SVCNAME}.conf -l $logfile}
eend $?
}
---
Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org
Help: alpine-devel+help@lists.alpinelinux.org
---
On Mon, 30 Apr 2012 13:05:46 +0200
Der Tiger <der.tiger.alpine@arcor.de> wrote:
> Hi Natanael,> > Nicely done! kernel 3.3.3 8-) , dhcpd, dhcpcd, bind and asterisk 10.3> are running smoothly.
Great! Thanks for testing!
> Since I am currently busy working on another package, I'd like to ask> you to apply the patch stated below in order to prevent mini_httpd> from crashing during boot. I am new to GIT and still figuring out how> to commit properly. Meanwhile, I'll have to rely on your help.
Will look at it tomorrow. Thanks!
-nc
---
Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org
Help: alpine-devel+help@lists.alpinelinux.org
---
On Mon, 30 Apr 2012 13:05:46 +0200
Der Tiger <der.tiger.alpine@arcor.de> wrote:
> Hi Natanael,> > Nicely done! kernel 3.3.3 8-) , dhcpd, dhcpcd, bind and asterisk 10.3> are running smoothly.> > Since I am currently busy working on another package, I'd like to ask> you to apply the patch stated below in order to prevent mini_httpd> from crashing during boot. I am new to GIT and still figuring out how> to commit properly. Meanwhile, I'll have to rely on your help.> > Thanks! Kind Regards, Tiger> > --- /etc/init.d/mini_httpd> +++ /etc/init.d/mini_httpd> @@ -4,6 +4,7 @@> # $Header:> /var/cvsroot/gentoo-x86/www-servers/mini_httpd/files/mini_httpd.init,v> 1.2 2007/08/26 21:20:21 bangert Exp $> pidfile=/var/run/mini_httpd/${SVCNAME}.pid> +logfile=/var/log/mini_httpd/${SVCNAME}.log> depend() {> need net> @@ -12,9 +13,11 @@> start() {> ebegin "Starting $SVCNAME"> + checkpath -d ${pidfile%/*}> + checkpath -d ${logfile%/*}> start-stop-daemon --quiet --start --exec /usr/sbin/mini_httpd \> --pidfile $pidfile -- -i $pidfile \> - ${MINI_HTTPD_OPTS:--C /etc/${SVCNAME}.conf -l> /var/log/mini_httpd/${SVCNAME}.log}> + ${MINI_HTTPD_OPTS:--C /etc/${SVCNAME}.conf -l $logfile}> eend $?> }
I'm gonna resolve this in slightly different way. I will fish out the
log file from mini_httpd.conf with awk. I will also move the config
to /etc/mini_httpd/mini_httpd.conf (using pre-install/upgrade scripts
and create compat symlink so upgraders won't notice anything)
Thanks!
-nc
---
Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org
Help: alpine-devel+help@lists.alpinelinux.org
---
ReHi Natanael,
>> + checkpath -d ${logfile%/*}> I'm gonna resolve this in slightly different way. I will fish out the> log file from mini_httpd.conf with awk.
Good idea! Wherever the log file is configured, please make sure the
path actually exists, for otherwise mini_httpd will unavoidably crash.
Thanks! Kind Regards, Tiger
---
Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org
Help: alpine-devel+help@lists.alpinelinux.org
---