Author Topic: Reload proftpd.conf not working with sighup  (Read 4997 times)

Offline GnubbyaBush

  • New user
  • *
  • Posts: 5
    • View Profile
Reload proftpd.conf not working with sighup
« on: January 24, 2010, 05:18:58 am »
hi all, I'm running a standalone proftpd server, and am trying to reload the server so that it re-reads the config file, and changes the speed of the user currently downloading (say from 200kbs to 20kbs). First i've been editing the proftpd.conf file to adjust the speeds like the following:

TransferRate RETR 20

then i send a sighup signal like the following to the master process:

kill -HUP 1454 <---pid

this doesn't stop the server, but it also doesn't seem to reload the config file, because the download speeds arn't adjusting to what i set them as.

I've tried all the proftpd processes seperatly but no luck in change in speed, Even if the user starts downloading another file it goes at the previous speed before the config was edited. Its like the reload isn't taking place? can anyone enlighten me?   

Offline castaglia

  • Administrator
  • Support Hero
  • *****
  • Posts: 5373
    • View Profile
Re: Reload proftpd.conf not working with sighup
« Reply #1 on: January 24, 2010, 05:26:58 pm »
A SIGHUP tells the daemon process to reload the config file without stopping -- but it does not tell a session process, the one handling a client that's logged in, to reload the config file.

For dynamically changing transfer speeds once a client has logged in, you need to use the mod_shaper module.