mirror of
https://github.com/haiwen/seafile-admin-docs.git
synced 2025-12-26 02:32:50 +00:00
add logrotate for seafdav
This commit is contained in:
parent
499fa5f56d
commit
71d40dbb95
|
|
@ -21,6 +21,7 @@ The configuration for logrotate could be like this:
|
|||
```
|
||||
/opt/seafile/logs/seafile.log
|
||||
/opt/seafile/logs/seahub.log
|
||||
/opt/seafile/logs/seafdav.log
|
||||
/opt/seafile/logs/fileserver-access.log
|
||||
/opt/seafile/logs/fileserver-error.log
|
||||
/opt/seafile/logs/fileserver.log
|
||||
|
|
@ -52,6 +53,10 @@ The configuration for logrotate could be like this:
|
|||
kill -HUP `cat /opt/seafile/pids/seahub.pid`
|
||||
fi
|
||||
|
||||
if [ -f /opt/seafile/pids/seafdav.pid ]; then
|
||||
kill -HUP `cat /opt/seafile/pids/seafdav.pid`
|
||||
fi
|
||||
|
||||
find /opt/seafile/logs/ -mtime +7 -name "*.log*" -exec rm -f {} \;
|
||||
endscript
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue