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

Bug #1388020 reported by Stanislav German-Evtushenko on 2014-10-31
This bug affects 4 people
Affects Status Importance Assigned to Milestone
proftpd-dfsg (Ubuntu)

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 @@
     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

Best regards,
Stanislav German-Evtushenko

Launchpad Janitor (janitor) wrote :

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

Changed in proftpd-dfsg (Ubuntu):
status: New → Confirmed
David Gnedt (lxp13) wrote :

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

Andreas Baumgartner (abaumg) wrote :

This is a duplicate of #1246245

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers