From owner-freebsd-hackers Mon Sep 25 11:27:26 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id LAA18844 for hackers-outgoing; Mon, 25 Sep 1995 11:27:26 -0700 Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id LAA18774 for ; Mon, 25 Sep 1995 11:25:18 -0700 Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id LAA05510; Mon, 25 Sep 1995 11:17:52 -0700 From: Terry Lambert Message-Id: <199509251817.LAA05510@phaeton.artisoft.com> Subject: Re: ports startup scripts To: gryphon@healer.com (Coranth Gryphon) Date: Mon, 25 Sep 1995 11:17:52 -0700 (MST) Cc: jmb@kryten.atinc.com, terry@lambert.org, hackers@FreeBSD.ORG, peter@taronga.com In-Reply-To: <199509251441.KAA12169@healer.com> from "Coranth Gryphon" at Sep 25, 95 10:41:35 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 2227 Sender: owner-hackers@FreeBSD.ORG Precedence: bulk > > It may also need to add a cron job to rotate the damons logs. > > No. With the new "daily" script handler (Jordan, have you told anyone > else about this yet?) all it needs to do is add a line to the scheduled > jobs config file (current name "sched.conf" like: > > rotate_log daily /some/log/file What if I want to rotate them twice a week instead of daily? What about twice a day? > > Ordering guarantees within a single run level/state are hard to provide > > with the single monolithic file model. > > Actually, a single file is the easiest to control ordering in. > Last I checked, line 1 always came before line 2. :-) The problem is that the line starts are not a fixed locations and are therefore variant without whole file locking. Which is bad. > > Finally, what if I don't want to delete the package, I just want to > > disable it? How to I prevent the package daemon's and cron jobs from > > Comment out the line in the control file? OK. Then: 1) How do I tell which line(s) correspond to which package? 2) How do I reenable it? 3) How do I do this from an administrative utility instead of having to actually know what's what myself? > > Typically, I'd put the "cron" jobs as at commands in the startup script, > > though this begs the question of providing configurability under > > administrative control (for instance, what if I want to specify a higher > > or lower frequency of log rotation?). Cron actually faces the same > > issues as init. > > As above, given that you have the granularity of "daily", "weekly", or > "monthly". I suppose we could always add "bi-weekly" and "bi-monthy" :-/ The question was in terms of specification by administrative fiat after boot time. With a cron job, I can change the file and reset cron. With an at job, I am pretty much screwed. The cron data files suffer from the same failings as the mondo-data-file correspondance ambiguities: how do I correlate lines with administrative actions on a package basis? The problem is that the n:m mapping goes to hell rather quickly when it becomes n:m:l mapping. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.