On Fri, Feb 17, 2006 at 07:49:49PM +0100, Christian Perrier wrote:
> Please reply to the bug number and not only to me...
> 
> 
> > Ok, it's not a problem for me. I was thinking so because:
> > 1 - restart and force-reload are in fact the same thing (but now I
> >     understand that they mean two different things, and so it's ok to
> >     have both of them)
> 
> It's not ok, it's mandatory...:-)
> 
> http://www.debian.org/doc/debian-policy/ch-opersys.html#s-sysvinit

Ok. Thanks a lot for the link!

> > instead of 
> > 
> > restart | force-reload)
> > 
> > we could have (not tested)
> > 
> > restart)
> >             start_stop stop
> >             sleep 2
> >             start_stop start
> >            ;;
> > force-reload)
> >            invoke-rc.d geneweb restart
> >            ;;
> 
> 
> Hmmmmvery certainly not a good idea to use invoke-rc.d from the init
> script itself....
> 
> No other package does this..:)

That's also what I was thinking; and I think that this could be solved
only by restarting geneweb "if and only if" it's already running.
But actually I still haven't written that part of the script. 
(I'm not so good at tuning init scripts..)
NB: I think the solution I already posted you is unfortunately only a 
workaround,
and not the perfect choice.
 
> I'm pretty sure that "invoke-rc.d xxxx force-reload" *always* starting
> the program is completely on purpose....

Yes, and reading the link you sent me I think that maybe we should create the
"reload" case in the initscript (by implementing what I wrote few lines
above).
That because as far as I can understand it's the only section which doesn't
attempt to start the service:

[quote]
reload
    cause the configuration of the service to be reloaded without
    actually stopping and restarting the service
[/quote]

In this way we could 
- restart geneweb if already running
or
- do nothing (except a warning message) if geneweb is not running 
without (I think) doing something against the debian-policy, and also
against the choices of the administrator of the machine.

What do you think about this?
If you agree I can try to write down that part of the initscript to
definitively solve the problem.

Bye, Vladimir Nicola
-- 
Bye by Vlad/Nick

- do not send me files with .exe,.pif,.scr,.bat or .com extension ! -
- emails  containing  such  attachments  are automatically  deleted -


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to