[Zope-Coders] Signal forwarding

Chris McDonough chrism@ZOPE.COM
08 Oct 2002 13:21:35 -0400


On Tue, 2002-10-08 at 11:04, Toby Dickenson wrote:
> > Why is it desirable to prevent the name from being changed?
> 
> Zope doesnt let you change the name of var/Z2.pid today, it is automatically 
> derived from INSTANCE_HOME, CLIENT_HOME, or whatever. It is nice for scripts 
> to be able to rely on that filename. (for example, the stop script uses kill 
> 'cat var/Z2.pid'). 

In upcoming revisions of Zope, the pidfile name might be speficiable via
a config file and Zope will more likely be controlled by a process named
"zctl" (like apachectl) than by start and stop scripts... zctl will be
able to parse the config file so it could pretty easily find out where
the pidfile was.

Then again, I'm not sure about the utility of changing the pidfile name
if you can change CLIENT_HOME anyway, so maybe it shouldn't be
specifiable.  Would you ever want to change the location of a pid file
and *not* change it to a place where the associated instance's
filestorage files were?

> > > Z2.pid if it is running under the supervisor process.
> >
> > Do you want to do this or should I? ;-)
> 
> I wont have a chance to do this before Friday...... 

OK, if I get around to it, I'll give it a go... thanks for thinking
about this (and for catching the Shuttle-crasher bug in zdaemon). ;-)

- C