Package: cherokee
Version: 0.99.43-1
Severity: minor
Tags: patch
When asking the status of the cherokee service by doing :
/etc/init.d/cherokee status
If cherokee is down, no pidfile exists and the script answer :
cherokee web server status: Running (PID 14459), but PIDFILE not present
.
It's because it looks for a process named cherokee and finds the init script
itself
as it have the same name as the daemon.
I'll attach a patch that make it work as expected. I don't know if it does the
right thing, though.
-- System Information:
Debian Release: 5.0.4
APT prefers stable
APT policy: (990, 'stable'), (650, 'testing'), (600, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-2-686 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages cherokee depends on:
ii libc6 2.10.2-6 Embedded GNU C Library: Shared lib
ii libcherokee-base0 0.99.43-1 Cherokee web server - Base librari
ii libcherokee-config0 0.99.43-1 Cherokee web server - Configuratio
ii libcherokee-server0 0.99.43-1 Cherokee web server - Server libra
ii libssl0.9.8 0.9.8m-2 SSL shared libraries
ii logrotate 3.7.1-5 Log rotation utility
Versions of packages cherokee recommends:
ii libcherokee-mod-admin 0.99.43-1 Cherokee web server - Administrati
ii spawn-fcgi 1.6.3-1 A fastcgi process spawner
Versions of packages cherokee suggests:
pn cherokee-doc <none> (no description available)
pn libcherokee-mod-geoip <none> (no description available)
pn libcherokee-mod-ldap <none> (no description available)
ii libcherokee-mod-libssl 0.99.43-1 Cherokee web server - SSL crypto f
pn libcherokee-mod-mysql <none> (no description available)
ii libcherokee-mod-rrd 0.99.43-1 Cherokee web server - RRDtool base
pn libcherokee-mod-streaming <none> (no description available)
-- no debconf information
--- cherokee.orig 2010-03-16 14:30:16.000000000 +0100
+++ cherokee 2010-03-16 14:30:48.000000000 +0100
@@ -82,7 +82,7 @@
fi
fi
else
- if PID=$(pidofproc cherokee); then
+ if PID=$(pidofproc $DAEMON); then
printf "Running (PID %s), but PIDFILE not present\t" "$PID"
else
printf "Not running\t"