*BSD News Article 14111


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!howland.reston.ans.net!gatech!concert!sas!mozart.unx.sas.com!torpid.unx.sas.com!sastdr
From: sastdr@torpid.unx.sas.com (Thomas David Rivers)
Subject: Re: Rotating the syslogs
Sender: news@unx.sas.com (Noter of Newsworthy Events)
Message-ID: <C52w0v.H0p@unx.sas.com>
Date: Tue, 6 Apr 1993 20:10:07 GMT
References: <1p77tt$rq3@usenet.INS.CWRU.Edu> <g89r4222.733427031@kudu> <1993Mar29.224423.12286@mnemosyne.cs.du.edu>
Nntp-Posting-Host: torpid.unx.sas.com
Organization: SAS Institute Inc.
Lines: 42

In article <1993Mar29.224423.12286@mnemosyne.cs.du.edu> smace@nyx.cs.du.edu (Scott Mace) writes:
>In article <g89r4222.733427031@kudu> g89r4222@kudu.ru.ac.za (Geoff Rehmet) writes:
>>In <1p77tt$rq3@usenet.INS.CWRU.Edu> david@jake.EEAP.CWRU.Edu (David Nerenberg) writes:
>>
>>Yu shouldn't really have a problem.  Note that the bindist comes
>>with files /etc/daily and /etc/weekly, which should be run daily
>>and weekly respectively, to do things like rotating logs.
>>
>
>[stuff deleted]
>
>>chmod 644 messages
>>kill -1 `cat /var/run/syslog.pid`
>^^^^^^^^^^^^^^^^^^^^^^^^
>I've always had problems with this, my system gets real funky when this
>executes.  I sometimes locks my keyboard in X, and also more(1)
>complains about not having some ioctl.  Strange.....
>Has anyone else encountered this?
>--
>*********************************************************************
>*    Scott Mace                internet:    smace@nyx.cs.du.edu     *
>*                                           emace@tenet.edu         *
>*********************************************************************

Yes, there are problems with this...  it has to do with the fact
that the console (well keyboard) is closed (well; not really since
someone else has it open.)  The console driver does not keep
a count of how many times the device has been open'd.

There is a small kludgy fix you can make in the close routine of pccons.c; 
when in X mode, have the close routine simply return instead of closing
the file - this gets around most of the problems (especially the locking
keyboard in X problem.)

There was quite a lively discussion of this some months ago when I reported
the same problem.

	- Dave Rivers -
	(sastdr@unx.sas.com (work))
	(rivers@ponds.uucp (home))
-- 
UPDATE ALL INFORMATION AND POD INTO COSMOS - Federal Express