-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aff7b45
commit 59a19eb
Showing
6 changed files
with
44 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
54 23 * * * /usr/sbin/logrotate -vf /scripts/logrotate-conf/seatable-nginx 2>> /opt/seatable-thumbnail/logs/logrotate.log | ||
55 23 * * * /usr/sbin/logrotate -vf /scripts/logrotate-conf/seatable-thumbnail 2>> /opt/seatable-thumbnail/logs/logrotate.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/opt/nginx-logs/*.log { | ||
daily | ||
missingok | ||
rotate 7 | ||
# compress | ||
# delaycompress | ||
dateext | ||
dateformat .%Y-%m-%d | ||
notifempty | ||
# create 640 nginx adm | ||
sharedscripts | ||
postrotate | ||
if [ -f /var/run/nginx.pid ]; then | ||
kill -USR1 `cat /var/run/nginx.pid` | ||
fi | ||
endscript | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/opt/seatable-thumbnail/logs/seafile.log | ||
/opt/seatable-thumbnail/logs/seatable-thumbnail.log | ||
{ | ||
daily | ||
missingok | ||
rotate 7 | ||
# compress | ||
# delaycompress | ||
dateext | ||
dateformat .%Y-%m-%d | ||
notifempty | ||
create 644 root root | ||
sharedscripts | ||
postrotate | ||
/scripts/seatable-thumbnail.sh restart | ||
endscript | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters