Skip to content

Instantly share code, notes, and snippets.

@lukesUbuntu
Created August 23, 2016 07:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukesUbuntu/07683676f01dbd10d6a8d7aa81b68e59 to your computer and use it in GitHub Desktop.
Save lukesUbuntu/07683676f01dbd10d6a8d7aa81b68e59 to your computer and use it in GitHub Desktop.
fix proftp stopping service in virtualmin
The problem is due to ProFTPD not stopping in time to be restarted for log rotation
Woraround
nano /etc/init.d/proftpd
Find this line:
start-stop-daemon --stop --signal $SIGNAL --quiet --pidfile "$PIDFILE"
Change to this:
start-stop-daemon --stop --signal $SIGNAL --retry 1 --quiet --pidfile "$PIDFILE"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment