logrotate crashes proftpd

Bug #1570003 reported by Geir Helland
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
proftpd-dfsg (Ubuntu)
New
Undecided
Unassigned

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)

Revision history for this message
Geir Helland (geir-helland) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.