Automatically write a logrotate file to the disk when wings boots if directory exists; closes pterodactyl/panel#2312
This commit is contained in:
13
templates/logrotate.tpl
Normal file
13
templates/logrotate.tpl
Normal file
@@ -0,0 +1,13 @@
|
||||
{{.LogDirectory}}/wings.log {
|
||||
size 10M
|
||||
compress
|
||||
delaycompress
|
||||
dateext
|
||||
maxage 7
|
||||
missingok
|
||||
notifempty
|
||||
create 0640 {{.User.Uid}} {{.User.Gid}}
|
||||
postrotate
|
||||
killall -SIGHUP wings
|
||||
endscript
|
||||
}
|
||||
Reference in New Issue
Block a user