Skip to content

Commit

Permalink
seafile logrotate
Browse files Browse the repository at this point in the history
  • Loading branch information
SkywalkerSpace committed Dec 2, 2021
1 parent e6352f9 commit ec06b53
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docker/scripts/logrotate-conf/seatable-thumbnail
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/opt/seatable-thumbnail/logs/seafile.log
/opt/seatable-thumbnail/logs/seatable-thumbnail.log
{
daily
Expand All @@ -11,6 +12,10 @@
create 644 root root
sharedscripts
postrotate
if [ -f /opt/seatable-thumbnail/pids/seafile.pid ]; then
kill -USR1 `cat /opt/seatable-thumbnail/pids/seafile.pid`
fi

/scripts/logrotate-conf/seatable-thumbnail-restart.sh
endscript
}

0 comments on commit ec06b53

Please sign in to comment.