/etc/init.d/proftpd restart doesn't work properly
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-
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.
+++ /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
else
Best regards,
Stanislav German-Evtushenko
Status changed to 'Confirmed' because the bug affects multiple users.