On Thu, Nov 05, 2009 at 10:10:55PM +0100, Martin Steigerwald wrote:
> Am Donnerstag 05 November 2009 schrieb Lionel Elie Mamane:
>> On Thu, Nov 05, 2009 at 08:39:24PM +0100, Martin Steigerwald wrote:

>>> Upgrade of capi4hylafax fails like this:

>>> shambhala:~> LANG=C aptitude safe-upgrade
>>> Preparing to replace capi4hylafax 1:01.03.00.99.svn.300-12 (using
>>> .../capi4hylafax_1%3a01.03.00.99.svn.300-13_i386.deb) ... Stopping
>>> capi4hylafax: c2faxrecvinvoke-rc.d: initscript capi4hylafax, action
>>> "stop" failed. dpkg: warning: old pre-removal script returned error
>>> exit status 1

>> Argh, it returns 1 when it is already stopped. That's a bug
>> indeed. To work around that bug, start capi4hylafax and try the
>> upgrade again.

> Doesn't work either. Init script does not seem to be able to either
> start or stop capi4hyladax.

I see. Then apply the attached patch and try the upgrade again. Or
upgrade directly to version -15, which fixes this.

--
Lionel
--- /etc/init.d/capi4hylafax
+++ /etc/init.d/capi4hylafax
@@ -74,22 +74,22 @@
 case "$1" in
     start)
 	echo -n "Starting capi4hylafax: c2faxrecv"
-	start-stop-daemon --start --quiet --background \
+	start-stop-daemon --start --quiet --oknodo --background \
 	    --make-pidfile --pidfile $C2FAXRECVPID \
 	    --exec /usr/bin/c2faxrecv
 	echo "."
 	;;
     stop)
 	echo -n "Stopping capi4hylafax: c2faxrecv"
-	start-stop-daemon --stop --quiet --pidfile $C2FAXRECVPID
+	start-stop-daemon --stop --quiet --oknodo --pidfile $C2FAXRECVPID
 	rm -f $C2FAXRECVPID
 	echo "."
 	;;
     restart | force-reload)
 	echo -n "Restarting capi4hylafax: c2faxrecv"
-	start-stop-daemon --stop --quiet --pidfile $C2FAXRECVPID
+	start-stop-daemon --stop --quiet --oknodo --pidfile $C2FAXRECVPID
 	sleep 2
-	start-stop-daemon --start --quiet --background \
+	start-stop-daemon --start --quiet --oknodo --background \
 	    --make-pidfile --pidfile $C2FAXRECVPID \
 	    --exec /usr/bin/c2faxrecv
 	echo "."

Reply via email to