SIGHUP: Reloading config and does not reset internal state of accounting
Wrongly configured accounting and sent sighup to reload the config. Reload failed with below messages
Jan 1 08:22:50 NoNameForHost Tor[19880]: Option 'AccountingStart' used more than once; all but the last value will be ignored. Jan 1 08:22:50 NoNameForHost Tor[19880]: You have set AccountingMax to use hibernation. You have also chosen a low DirPort or OrPort. This combination can make Tor stop working when it tries to re-attach the port after a period of hibernation. Please choose a different port or turn off hibernation unless you know this combination will work on your platform. Jan 1 08:22:50 NoNameForHost Tor[19880]: You have set AccountingMax to use hibernation. You have also chosen a low DirPort or OrPort. This combination can make Tor stop working when it tries to re-attach the port after a period of hibernation. Please choose a different port or turn off hibernation unless you know this combination will work on your platform. Jan 1 08:22:50 NoNameForHost Tor[19880]: Caching new entry toranon for toranon Jan 1 08:22:50 NoNameForHost Tor[19880]: Failed to unlink /var/lib/tor/bw_accounting: No such file or directory Jan 1 08:22:50 NoNameForHost Tor[19880]: Configured hibernation. This interval begins at 2015-01-01 10:00:00 and ends at 2015-02-01 10:00:00. We have no prior estimate for bandwidth, so we will start out awake and hibernate when we exhaust our quota. Jan 1 08:22:51 NoNameForHost Tor[19880]: Commencing hibernation. We will wake up at 2015-01-01 10:00:00 local time. Jan 1 08:22:51 NoNameForHost Tor[19880]: Going dormant. Blowing away remaining connections.
Later I commented out accounting and sent sighup to reload the config but it does not reset internal state and keep on logging below messages.
Jan 1 08:23:23 NoNameForHost Tor[19880]: Accounting period ended. This period, we will hibernate until 2015-01-01 04:30:00 UTC Jan 1 08:23:24 NoNameForHost Tor[19880]: Accounting period ended. This period, we will hibernate until 2015-01-01 04:30:00 UTC
I had to restart tor service to properly load config again.
Trac:
Username: Sasi