Bug#636162: busybox-syslogd: it doesn't start on hurd

2011-08-02 Thread Michael Tokarev
01.08.2011 23:53, Michael Tokarev wrote:
 01.08.2011 01:47, Gabriele Giacone wrote:
 Package: busybox-syslogd
 Version: 1:1.18.5-1
 Severity: normal

 On hurd, syslogd (busybox) process doesn't start with -C128 option (didn't
 investigate further) and init scripts check if running by looking for klogd 
 and
 
 I'll take a look at this.  The -C option (log to shared buffer) is basically
 essential for this package, so removing it is not an option.

So, after some investigation and help from Samuel Thibault on IRC,
it turns out that hurd has.. issues with shared memory, and it does
not implement semaphores at all.  Busybox's syslog uses both for
shared syslog buffer.  This is a defect in hurd - one part is easy
to fix (shm), another - sem - needs kernel implementation.
 
 syslogd basenames in /proc/[0-9]*/stat files whereas on hurd there are 
 fullnames
 in such files. Attached patch points that out.
 
 I think a better idea is to use start-stop-daemon for this stuff, instead of
 poking at /proc/$pid/stat Co.  I'll also take a look.

So yes, start-stop-daemon works on hurd too, I'll fix the script
to use that one instead.

But whole thing is wontfix for now in busybox, until semaphores
and shared memory will be implemented in hurd.  I don't want to
reduce functionality on other systems, and I don't want to check
for hurd in the script too, because it will be wrong when this
functionality will finally be implemented.

I think a better idea is to have /etc/default/busybox-syslogd that
sets options on a given system.

/mjt



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#636162: busybox-syslogd: it doesn't start on hurd

2011-08-01 Thread Michael Tokarev
01.08.2011 01:47, Gabriele Giacone wrote:
 Package: busybox-syslogd
 Version: 1:1.18.5-1
 Severity: normal
 
 On hurd, syslogd (busybox) process doesn't start with -C128 option (didn't
 investigate further) and init scripts check if running by looking for klogd 
 and

I'll take a look at this.  The -C option (log to shared buffer) is basically
essential for this package, so removing it is not an option.

 syslogd basenames in /proc/[0-9]*/stat files whereas on hurd there are 
 fullnames
 in such files. Attached patch points that out.

I think a better idea is to use start-stop-daemon for this stuff, instead of
poking at /proc/$pid/stat Co.  I'll also take a look.

Thank you for the report.  Downloading hurd image to verify... ;)

/mjt



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#636162: busybox-syslogd: it doesn't start on hurd

2011-07-31 Thread Gabriele Giacone
Package: busybox-syslogd
Version: 1:1.18.5-1
Severity: normal

On hurd, syslogd (busybox) process doesn't start with -C128 option (didn't
investigate further) and init scripts check if running by looking for klogd and
syslogd basenames in /proc/[0-9]*/stat files whereas on hurd there are fullnames
in such files. Attached patch points that out.

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: hurd-i386 (i686-AT386)

Kernel: GNU-Mach 1.3.99/Hurd-0.3
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages busybox-syslogd depends on:
ii  busybox   1:1.18.5-1 Tiny utilities for small and embed

busybox-syslogd recommends no packages.

busybox-syslogd suggests no packages.

-- Configuration Files:
/etc/default/busybox-syslogd changed [not included]
/etc/init.d/busybox-klogd changed [not included]
/etc/init.d/busybox-syslogd changed [not included]

-- no debconf information
diff --git a/debian/busybox-syslogd.busybox-klogd.init b/debian/busybox-syslogd.busybox-klogd.init
index 9acda52..4e9bed6 100644
--- a/debian/busybox-syslogd.busybox-klogd.init
+++ b/debian/busybox-syslogd.busybox-klogd.init
@@ -79,7 +79,7 @@ stop_server() {
 }
 
 running() {
-cut -d ' ' -f 1-2 /proc/[0-9]*/stat 2 /dev/null | grep -F ($NAME)
+cut -d ' ' -f 1-2 /proc/[0-9]*/stat 2 /dev/null | grep -F ($DAEMON)
 }
 
 case $1 in
diff --git a/debian/busybox-syslogd.default b/debian/busybox-syslogd.default
index bc9a28f..4518307 100644
--- a/debian/busybox-syslogd.default
+++ b/debian/busybox-syslogd.default
@@ -3,5 +3,6 @@
 
 # Additional options that are passed to the daemons.  Default is to log
 # to ring buffer (to be read with logread(1)) and drop duplicates.
-SYSLOG_OPTS=-C128
+#SYSLOG_OPTS=-C128
+SYSLOG_OPTS=
 KLOG_OPTS=
diff --git a/debian/busybox-syslogd.init b/debian/busybox-syslogd.init
index f489dd2..5b93259 100644
--- a/debian/busybox-syslogd.init
+++ b/debian/busybox-syslogd.init
@@ -79,7 +79,7 @@ stop_server() {
 }
 
 running() {
-cut -d ' ' -f 1-2 /proc/[0-9]*/stat 2 /dev/null | grep -F ($NAME)
+cut -d ' ' -f 1-2 /proc/[0-9]*/stat 2 /dev/null | grep -F ($DAEMON)
 }
 
 case $1 in