Package: dpkg
Version: 1.13.11.0.1
Severity: normal

I think there exists an error in forking in start-stop-daemon.
If I run start-stop-daemon in my init-script without the --oknodo
argument start-stop-daemon replaces the script process and exits with 1
on an error.
So the script never continues to the end.
Shouldn't s-s-d return to the script so that one can handle the error?
The manpage tells me about --oknodo:

-o|--oknodo Return exit status 0 instead of 1 if no actions are (would
be) taken.

So without -o it should also return and not exit.


Part of my script:

  stop)
        log_begin_msg "Stopping ${DESC}:"
        start-stop-daemon --stop --oknodo --quiet --pidfile $PID
        log_end_msg $?
        #
        # the pidfile must be removed or the daemon won't start 
        # the next time
        test -f "$DOORMAND_PID" && rm -f "$DOORMAND_PID"
        ;;


-- System Information:
Debian Release: sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.4.27-2-686
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)

Versions of packages dpkg depends on:
ii  coreutils [textutils]         5.93-5     The GNU core utilities
ii  libc6                         2.3.5-8    GNU C Library: Shared libraries an

dpkg recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to