Mail archive
alpine-devel

Re: [alpine-devel] [Patch] mini_httpd: crash on startup

From: Der Tiger <der.tiger.alpine_at_arcor.de>
Date: Sat, 07 Apr 2012 20:09:40 +0200

ReHi Natanael,

Thank you for your immediate reply! I'm sorry for the delay in answering
your mail!

>> The patch below ensures the folders are available. Please, consider
>> integrating it.
> I get this error when tryin apply it:
> fatal: cannot convert from ISO-8859-15 to UTF-8
Well, I'm a bl00dy continental generally using ISO format for e-mailing.
;-) I'll make sure to send future patches in UTF-8 format.

You'll find updated patches modified to your suggestions below.

Regards, Tiger

--- /etc/init.d/mini_httpd
+++ /etc/init.d/mini_httpd
_at_@ -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
_at_@ -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 $?
 }

--- /etc/init.d/dhcpd
+++ /etc/init.d/dhcpd
_at_@ -73,6 +73,7 @@
         pidfile="${pidfile:-/var/run/dhcp/dhcpd.pid}"

         ebegin "Starting ${DHCPD_CHROOT:+chrooted }${SVCNAME}"
+ checkpath -o dhcp:dhcp -d ${pidfile%/*}
         start-stop-daemon --start --exec /usr/sbin/dhcpd \
                 --pidfile "${DHCPD_CHROOT}/${pidfile}" \
                 -- ${DHCPD_OPTS} -q -pf "${pidfile}" \



---
Unsubscribe:  alpine-devel+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-devel+help_at_lists.alpinelinux.org
---
Received on Sat Apr 07 2012 - 20:09:40 UTC