(Aug 11 2005 14:42) Morten Nilsen wrote:
> Christian Haugan Toldnes wrote:
> > (Aug 11 2005 03:20) Andy Bakun wrote:
> > 
> >>- what about a swup.conf option that makes the services that get
> >>restarted customizable?  this would be kind of a headache to maintain.
> > 
> > I'm thinking more of a system not related to swup at all. I'll see what
> > pops up later on.
> 
> I've long been thinking about an improved init, where the various 
> scripts have listed dependencies, but I haven't thought out the actual 
> mechanism

I think Goetz tried that for 2.0, but it proved a bit hard. Also this
would not help with the case of openssl, since we don't have any openssl
initscript.

I'm thinking more in the lines of a general script that openssl, zlib,
php and others can run in %post. That script should read a configuration
file which defines what services needs to be restarted based on what RPM
package is running the script.

Something like this:

/sbin/tsl-restart-services php
 |
 |---> Checks what services needs to be restarted after a php upgrade
 |
 |---> /sbin/restart_maybe httpd

That would be both clean and easy to maintain. The script can even say
something like "Restarting services because of php upgrade" which will
make things more obvious in logs and mail.


c

-- 
Christian H. Toldnes
Trustix Developer
_______________________________________________
tsl-discuss mailing list
[email protected]
http://lists.trustix.org/mailman/listinfo/tsl-discuss

Reply via email to