jonm / SillyMUD

SillyMUD, a derivative of DikuMud
Other
8 stars 5 forks source link

rotate production log #75

Closed jonm closed 8 years ago

jonm commented 8 years ago

The game currently logs to syslog when running in daemon mode; we should figure out a configuration for rsyslogd that allows for periodic rotation/truncation of logs (and then document that in the INSTALL doc).

dangitall commented 8 years ago

IIRC you can do some rsyslogd configuration to do log rotation but I would personally just add an entry on your server for the logrotate cronjob to run. Do you have a strong preference here?

jonm commented 8 years ago

I guess my preference would be to figure out how to get rsyslogd to do the rotation, although I agree it's probably quicker to just do logrotate with an /etc/init.d/rsyslogd restart or kill -HUP afterwards.

dangitall commented 8 years ago

I looked into doing this with rsyslogd and have decided that this is not my definition of fun. I added a logrotate config entry on the ec2 instance. If you really want this done differently we can negotiate later. :smile:

jonm commented 8 years ago

No, this is fine. Big fan of pragmatism. :)