Public bug reported:

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

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

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1388020

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

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to