[Bug 1570003] [NEW] logrotate crashes proftpd

Geir Helland geir.helland at datametrix.no
Wed Apr 13 16:30:11 UTC 2016


Public bug reported:

In /etc/logrotate/proftpd-basic, the postrotate sections we find this:

invoke-rc.d proftpd restart 2>/dev/null >/dev/null || true

This command fails to properly restart the service.

Updating /etc/init.d/proftpd fixes the problem:

--- /etc/init.d/proftpd~        2013-12-20 19:07:33.000000000 +0100
+++ /etc/init.d/proftpd 2016-04-13 18:25:59.508208307 +0200
@@ -106,7 +106,7 @@
        fi
     fi
     if [ -f "$PIDFILE" ]; then
-       start-stop-daemon --stop --signal $SIGNAL --quiet --pidfile "$PIDFILE"
+       start-stop-daemon --stop --signal $SIGNAL --retry 2 --quiet --pidfile "$PIDFILE"
         if [ $? = 0 ]; then
                log_end_msg 0
        else

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: proftpd-basic 1.3.5~rc3-2.1ubuntu2
ProcVersionSignature: Ubuntu 3.19.0-51.58~14.04.1-generic 3.19.8-ckt13
Uname: Linux 3.19.0-51-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.19
Architecture: amd64
Date: Wed Apr 13 18:15:51 2016
InstallationDate: Installed on 2016-02-01 (72 days ago)
InstallationMedia: Ubuntu-Server 14.04.3 LTS "Trusty Tahr" - Beta amd64 (20150805)
ProcEnviron:
 LANGUAGE=nb_NO:nb:no_NO:no:nn_NO:nn:en
 TERM=linux
 PATH=(custom, no user)
 LANG=nb_NO.UTF-8
 SHELL=/bin/bash
SourcePackage: proftpd-dfsg
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: proftpd-dfsg (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug trusty

-- 
You received this bug notification because you are a member of ProFTPD
Maintainance Team, which is subscribed to proftpd-dfsg in Ubuntu.
https://bugs.launchpad.net/bugs/1570003

Title:
  logrotate crashes proftpd

Status in proftpd-dfsg package in Ubuntu:
  New

Bug description:
  In /etc/logrotate/proftpd-basic, the postrotate sections we find this:

  invoke-rc.d proftpd restart 2>/dev/null >/dev/null || true

  This command fails to properly restart the service.

  Updating /etc/init.d/proftpd fixes the problem:

  --- /etc/init.d/proftpd~        2013-12-20 19:07:33.000000000 +0100
  +++ /etc/init.d/proftpd 2016-04-13 18:25:59.508208307 +0200
  @@ -106,7 +106,7 @@
          fi
       fi
       if [ -f "$PIDFILE" ]; then
  -       start-stop-daemon --stop --signal $SIGNAL --quiet --pidfile "$PIDFILE"
  +       start-stop-daemon --stop --signal $SIGNAL --retry 2 --quiet --pidfile "$PIDFILE"
           if [ $? = 0 ]; then
                  log_end_msg 0
          else

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: proftpd-basic 1.3.5~rc3-2.1ubuntu2
  ProcVersionSignature: Ubuntu 3.19.0-51.58~14.04.1-generic 3.19.8-ckt13
  Uname: Linux 3.19.0-51-generic x86_64
  ApportVersion: 2.14.1-0ubuntu3.19
  Architecture: amd64
  Date: Wed Apr 13 18:15:51 2016
  InstallationDate: Installed on 2016-02-01 (72 days ago)
  InstallationMedia: Ubuntu-Server 14.04.3 LTS "Trusty Tahr" - Beta amd64 (20150805)
  ProcEnviron:
   LANGUAGE=nb_NO:nb:no_NO:no:nn_NO:nn:en
   TERM=linux
   PATH=(custom, no user)
   LANG=nb_NO.UTF-8
   SHELL=/bin/bash
  SourcePackage: proftpd-dfsg
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/proftpd-dfsg/+bug/1570003/+subscriptions



More information about the Pkg-proftpd-maintainers mailing list