Your message dated Mon, 20 Oct 2008 13:15:23 +0200
with message-id <[EMAIL PROTECTED]>
and subject line Re: Bug#502723: proftpd: fails when started if already running 
(heartbeat)
has caused the Debian Bug report #502723,
regarding proftpd: fails when started if already running (heartbeat)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)


-- 
502723: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=502723
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: proftpd
Version: 1.3.0-19etch1
Severity: normal

When proftpd is started from /etc/init.d and it is already running,
the init.d script reports a failure (and exitcode 1):

        [EMAIL PROTECTED]:~$ sudo /etc/init.d/proftpd start
        Starting ftp server: proftpd failed!
        [EMAIL PROTECTED]:~$ echo $?
        1

This causes trouble when used in conjunction with heartbeat.
In case a slave node controlled by heartbeat dies, the master node
will attempt to acquire its resources, regardless of whether the
master node already 'owned' those resources or not.

        heartbeat: 2008/10/19_13:11:59 info: Received shutdown notice from 
'slave'.
        heartbeat: 2008/10/19_13:11:59 info: Resources being acquired from 
slave.
        ...
        heartbeat: 2008/10/19_13:12:00 info: Running /etc/init.d/djbdns  start
        heartbeat: 2008/10/19_13:12:01 info: Running /etc/init.d/apache  start
        heartbeat: 2008/10/19_13:12:01 info: Running /etc/init.d/postfix  start
        heartbeat: 2008/10/19_13:12:02 info: Running /etc/init.d/proftpd  start
        heartbeat: 2008/10/19_13:12:02 ERROR: Return code 1 from 
/etc/init.d/proftpd
        heartbeat: 2008/10/19_13:12:02 CRIT: Giving up resources due to failure 
of proftpd

As can been seen from above logging, heartbeat attempts to start several
services (djbdns, apache, postfix, proftpd). Note that, normally, all of
these services are already running on the master node. Only proftpd returns
an error when attempting to start. This in turn causes hearbeat to fail 
and give up its resources :-(

The proposed solution is to add the '--oknodo' option to
/etc/init.d/proftpd when starting the daemon:

        [EMAIL PROTECTED]:/etc/init.d$ diff -Naur proftpd.org proftpd
        --- proftpd.org 2008-10-19 14:45:11.000000000 +0200
        +++ proftpd     2008-10-19 14:36:30.000000000 +0200
        @@ -91,7 +91,7 @@
         {
             log_daemon_msg "Starting ftp server" "$NAME"

        -    start-stop-daemon --start --quiet --pidfile "$PIDFILE" --exec 
$DAEMON -- $OPTIONS
        +    start-stop-daemon --start --quiet --oknodo --pidfile "$PIDFILE" 
--exec $DAEMON -- $OPTIONS
             if [ $? != 0 ]; then
                 log_end_msg 1
                 exit 1

Note that the '--oknodo' option is also used by other services like
apache, openssh-server, ntp. So it doesn't seem very unusual to handle 
it this way.

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (990, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-6-686
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages proftpd depends on:
ii  adduser                3.102             Add and remove users and groups
ii  debconf                1.5.11etch2       Debian configuration management sy
ii  debianutils            2.17              Miscellaneous utilities specific t
ii  libacl1                2.2.41-1          Access control list shared library
ii  libattr1               2.4.32-1          Extended attribute shared library
ii  libc6                  2.3.6.ds1-13etch7 GNU C Library: Shared libraries
ii  libldap2               2.1.30-13.3       OpenLDAP libraries
ii  libmysqlclient15off    5.0.32-7etch6     mysql database client library
ii  libncurses5            5.5-5             Shared libraries for terminal hand
ii  libpam-runtime         0.79-5            Runtime support for the PAM librar
ii  libpam0g               0.79-5            Pluggable Authentication Modules l
ii  libpq4                 8.1.11-0etch1     PostgreSQL C client library
ii  libssl0.9.8            0.9.8c-4etch3     SSL shared libraries
ii  libwrap0               7.6.dbs-13        Wietse Venema's TCP wrappers libra
ii  netbase                4.29              Basic TCP/IP networking system
ii  perl                   5.8.8-7etch3      Larry Wall's Practical Extraction 
ii  ucf                    2.0020            Update Configuration File: preserv
ii  zlib1g                 1:1.2.3-13        compression library - runtime

proftpd recommends no packages.

-- debconf information excluded



--- End Message ---
--- Begin Message ---
Package: proftpd
Version: 1.3.1-14

Fixed at some point in time during Lenny development. For sure it is ok 
in the version above. You can - should ? - use the BPO version to fix
etch. 

-- 
Francesco P. Lovergine


--- End Message ---

Reply via email to