mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 23:00:55 +03:00
Allow to rotate logs on demand
Log file can be rotated sending a SIGUSR1 signal on Unix based systems and using "sftpgo service rotatelogs" on Windows Fixes #133
This commit is contained in:
@@ -124,6 +124,7 @@ func (s *Service) Start() error {
|
||||
func (s *Service) Wait() {
|
||||
if s.PortableMode != 1 {
|
||||
registerSigHup()
|
||||
registerSigUSR1()
|
||||
}
|
||||
<-s.Shutdown
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user