$CS_ROOT/log/install

Date: Tue, 6 Jan 1998 02:10:33 -0400 (AST)
From: James Fifield <fifield@cs.dal.ca>
To: John Nemeth <jnemeth@cue.bc.ca>
cc: csuite-dev@chebucto.ns.ca
Return-Path: <csuite-dev-owner@chebucto.ns.ca>

next message in archive
no next message in thread
previous message in archive
previous message in thread
Index of Subjects

Index of Subjects
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

---559023410-959030623-884065008=:20534
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Content-ID: <Pine.GSO.3.96.980106015232.20534F@borg>

On Fri, 2 Jan 1998, John Nemeth wrote:

>      What program creates $CS_ROOT/log/install?  Or, better yet, why
> isn't this log rotated (it was 25 MB on a system that has been running
> for 1.5 months)?
> 

As far as I know, $CS_ROOT/bin/info_install is the only file that write to
it.  As far as why it's not rotated...  Log rotation was only partially
patched very recently.  Up until now it's been hopelessly broken in the
distribution.  The problem is fairly simply to track down, but if you
haven't had a chance to do it yet John, hopefully the rest of this letter
will help.

I've attached a patch for $CS_ROOT/src/cronbin/rotate-logs and a new
script called agelog that can be copied into $CS_ROOT/src/bin.

For the benefit of others out there who are interested in this, let me
warn you that this patch is somewhat untested.  I've just installed and 
run it on one of our development systems; it seemed to work okay.  The
only problem that I encountered was that the program "patch" (usually in
/usr/bin/), is not installed with the basic CSuite distribution.  Other
than that, these are the steps I followed:

1. Copy the agelog and rotate-logs.diff to $CS_ROOT/src/bin and
   $CS_ROOT/src/cronbin respectively
2. Patch rotate-logs using the diff provided
   (cd $CS_ROOT/src/cronbin ; patch rotate-logs < rotate-logs.diff)
3. Install the files using the CSuite cs_install program:

cd $CS_ROOT
lib/cs_install src/bin/agelog bin/agelog
lib/cs_install src/cronbin/rotate-logs cronbin/rotate-logs



That's all that should be necessary, of course, this is all done with the
latest version of CSuite, (Beta 2.0).  Your mileage may very with older
versions.

--

James Fifield <fifield@cs.dal.ca>
CSuite Technical Staff

Black holes are where God divided by zero.


---559023410-959030623-884065008=:20534
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; NAME="rotate-logs.diff"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.GSO.3.96.980106013648.20534B@borg>
Content-Description: 

MWMxDQo8ICMhIC9iaW4vc2gNCi0tLQ0KPiAjISBAQEBORVdfQkFTSEBAQA0K
MTFkMTANCjwgIyBoYXJkY29kZWQgcGF0aHMhDQoxM2MxMg0KPCBDU19ST09U
PS9jc3VpdGUNCi0tLQ0KPiBDU19ST09UPUBAQENTX1JPT1RAQEANCjE3YzE2
DQo8IFBBVEg9JFNZU1BBVEggOyBleHBvcnQgUEFUSA0KLS0tDQo+IFBBVEg9
JFVTRVJQQVRIIDsgZXhwb3J0IFBBVEgNCjE5YzE4DQo8IGNkIC92YXIvbG9n
DQotLS0NCj4gY2QgJENTX0xPRw0KMzEsMzhjMzAsMzUNCjwgCSJmZWVkYmFj
ayJ8InN5c3RhdHMifCJtYW4yaHRtbCJ8ImRldnN3KiJ8ImF1ZnMifCJ4ZG0t
ZXJyb3JzInwibWF0bGFiInwiaGVscCJ8ImNoYW5nZXMiKQk7Ow0KPCAJInBh
Y2N0IikJCS91c3IvbGliL2FjY3QvYWNjdG9uDQo8IAkJCW12IHBhY2N0IG9w
YWNjdA0KPCAJCQl0b3VjaCBwYWNjdCAmJiBjaG1vZCA2NDAgcGFjY3QNCjwg
CQkJL3Vzci9saWIvYWNjdC9hY2N0b24gL3Zhci9sb2cvcGFjY3QNCjwgCQkJ
YWdlbG9nIC16IDAgb3BhY2N0IDMgT0xEDQo8IAkJCTs7DQo8IAkicm91dGVy
IikJCXptYWlsZXIga2lsbCByb3V0ZXINCi0tLQ0KPiAJImZlZWRiYWNrInwi
c3lzdGF0cyJ8Im1hbjJodG1sInwiZGV2c3cqInwiYXVmcyJ8InhkbS1lcnJv
cnMifCJoZWxwInwiY2hhbmdlcyIpCTs7DQo+IA0KPiANCj4gCSMjIyAicm91
dGVyIiwgInNjaGVkdWxlciIsIGFuZCAic210cHNlcnZlciIgc2hvdWxkIGJl
IHVwZGF0ZWQgdG8NCj4gCSMjIyByZWZsZWN0IHRoYXQgdGhleSBhcmUgbm93
IHN0b3JlZCBpbiAkQ1NfTE9HL21haWwuDQo+IAkicm91dGVyIikJem1haWxl
ciBraWxsIHJvdXRlcg0KNDlhNDcsNDkNCj4gCSMjIw0KPiANCj4gCSMjIyAi
bWVzc2FnZXMiIGlzIHN0aWxsIGluIC92YXIvbG9nDQo1MmE1Mw0KPiAJIyMj
IE5vIGNsdWUgd2hlcmUgdGhpcyBpcyBhbnltb3JlDQo1NWE1Nyw2MQ0KPiAN
Cj4gCSMjIyBMZXQncyBub3Qgcm90YXRlIGFueSBkZWJ1Zy4qIGZpbGVzLiAg
V2Ugd2FubmEgc2VlIHRoZXNlLiA6KQ0KPiAJIyMjIFRoZSBseW54KiBmaWxl
cyBoYXZlIHRoZWlyIG93biByb3RhdGlvbiwgSSBkb24ndCBrbm93IHdoZXJl
Lg0KPiAJbHlueCp8ZGVidWcuKikJOzsNCj4gDQo=
---559023410-959030623-884065008=:20534
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; NAME=agelog
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.GSO.3.96.980106013648.20534C@borg>
Content-Description: 

IyEgQEBATkVXX0JBU0hAQEANCjogYWdlbG9nIC0tIGFnZSBsb2cgZmlsZXMs
IGJ5IERhdmUgTGVubmVydCBhcyB0b2xkIHRvIEJvYiBEZXNpbmdlcg0KIw0K
IyBVc2FnZTogICQwIGxvZ0ZpbGUgaG93TWFueSBbc3Rhc2hEaXJdDQojIFRo
ZSBtb3N0IHJlY2VudCA8aG93TWFueT4gbG9ncyBhcmUga2VwdCBhcm91bmQg
YnkgcmVuYW1pbmcgbG9nRmlsZSB0bw0KIyBsb2dGaWxlLjAsIGFmdGVyIHNp
bWlsYXJseSByb2xsaW5nIGxvZ0ZpbGUuMCA9PiBsb2dGaWxlL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CnRoZW4NCgkjIGRvbid0IGNyZWF0ZSBhbiBvbGQgbG9nIGlmICQyIHdh
cyAwDQoJdGVzdCAkbWF4IC1ndCAwICYmIGNwICRsb2cgJGFyY2guMA0KCWNw
IC9kZXYvbnVsbCAkbG9nCSMgY2xlYXIgb3V0IGxvZw0KCWlmIFsgMCAtZ2Ug
JHphcmcgXQ0KCXRoZW4NCgkJZ3ppcCAtZiAkYXJjaC4kb2xkZXINCglmaQ0K
ZmkNCg0KZXhpdCAwDQo=
---559023410-959030623-884065008=:20534--

next message in archive
no next message in thread
previous message in archive
previous message in thread
Index of Subjects