Skip to content

Instantly share code, notes, and snippets.

@Vince0789
Last active January 9, 2020 22:57
Show Gist options
  • Save Vince0789/a6f8314317f936d2d38e5b88e7b84a18 to your computer and use it in GitHub Desktop.
Save Vince0789/a6f8314317f936d2d38e5b88e7b84a18 to your computer and use it in GitHub Desktop.
Configuration file for logrotate to rotate SA-MP server logs.
/path/to/server/server_log.txt {
daily
rotate 30
dateext
extension .txt
olddir /var/log/samp03svr
missingok
compress
create
postrotate
killall -SIGUSR1 samp03svr
endscript
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment