/etc/init.d/proftpd restart doesn't work properly

Bug #1388020 reported by Stanislav German-Evtushenko
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
proftpd-dfsg (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Ubuntu 14.04.x with latest updates.
proftpd-basic 1.3.5~rc3-2.1ubuntu2

If I do /etc/init.d/proftpd restart first time and then check for the process 'ps aux | grep proftpd' I find it is absent. Running next time - proftpd process apeared. Running again - proftpd process disappeared again. This is because start-stop-daemon doesn't wait untill a process actually stopps.

Here is a fix:
--- /etc/init.d/proftpd.orig 2013-12-20 22:07:33.000000000 +0400
+++ /etc/init.d/proftpd 2014-10-31 12:49:56.251787668 +0300
@@ -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 --quiet --pidfile "$PIDFILE" --retry 5
      if [ $? = 0 ]; then
          log_end_msg 0
      else

Best regards,
Stanislav German-Evtushenko

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in proftpd-dfsg (Ubuntu):
status: New → Confirmed
Revision history for this message
David Gnedt (lxp13) wrote :

Additionally, proftpd is automatically restarted by logrotate, effectively shutting down the server.

Revision history for this message
Andreas Baumgartner (abaumg) wrote :

This is a duplicate of #1246245

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.