On Tue, Jan 20, 2009 at 02:20:08PM -0800, Kohsuke Kawaguchi wrote:
> Speaking of logadm, it would be nice if logadm can read configuration 
> from not just one file but from /etc/logadm.d/*

Or from SMF -- each service could have its own log rotation
configuration.  Fewer writable files in /etc -> better.

> When I package my daemon for Solaris via pkg(5), I can't currently 
> auto-configure logadm, because I have to modify logadm.conf.

You could do it by delivering a service whose start method adds the
necessary lines to logadm.conf if they are missing.  But things get
complicated on uninstall.

Also, this is probably a good reason for having a single service to run
this sort of self-assembly: what if multiple such services compete to
edit logadm.conf?  There's no locking convention they could use!  A
single service that serializes self-assembly would solve that problem
(though it might slow the first post-install boot).

Nico
-- 

Reply via email to