[tech] [wheel] Cokelog

Nick Bannon nick at ucc.gu.uwa.edu.au
Wed May 31 11:20:02 WST 2006


On Mon, May 08, 2006 at 01:39:38PM +0800, Rhys Bevilaqua wrote:
> somebody messed up the permissions on the cokelog, also sometime before
> 1:38pm monday can somebody check that there are no multiple dispenses
> for me since the coke machine was erroring when i tried to dispense a
> coke zero.

That should fix it - this year's cokelogs are now readable from
/home/other/coke/cokelog again.

Sorry about the delay - here were your two? dispenses:
May  8 12:27:23 mermaid <drink>: success - add -86 cents to rhys [null c0ke] by rhys [balance 623]
May  8 13:32:34 mermaid <drink>: success - add -86 cents to rhys [null c0ke] by rhys [balance 537]

Both mussel and mermaid had been writing to that file, which has caused
some corruption of that copy of the logs. mermaid is the dispense server,
it does the writing of the logfile; it will now also listen to logs from
mussel. (which required a "-r" parameter in mussel:/etc/init.d/sysklogd
and a syslog entry in mermaid:/etc/init.d/ucc-fw )

mussel is not the (drink) dispense server, however it's handling the
snack machine, and talks to the dispense server to deduct cokecredit.

/etc/cron.weekly/sysklogd on a Debian machine will automagically try to
rotate all the log files, but you can edit it to prevent that. The
changes will be preserved as you upgrade, like any other conffile

To confuse matters, mermaid has logrotate installed as well, that lets
you rotate things more cleverly, i.e. "don't rotate the cokelog unless
it hits 100M".

Nick.

-- 
   Nick Bannon   | "I made this letter longer than usual because
nick-sig at rcpt.to | I lack the time to make it shorter." - Pascal


More information about the tech mailing list