Skip to content

Commit

Permalink
updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
BattleRattle committed Jul 8, 2016
1 parent 1d3208a commit 26e1afa
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,26 @@ Usage of sexy:
```


Log Rotation
------------

If you want to use `logrotated` for managing the log file, this example config might be useful:

```
/var/log/sexy/sexy.log
{
rotate 1
size 20M
missingok
postrotate
/usr/bin/killall -USR1 sexy
endscript
}
```

Sending the `USR1` signal tells Sexy to reopen the file handle to the log file without restart. No logs will get lost using this method.


Contributing
------------

Expand Down

0 comments on commit 26e1afa

Please sign in to comment.