"Kevin A. Burton" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Shapira, Yoav wrote:
>
>>The semantic of "restart only if you feel like it" is useless IMHO.  You
>>either want a restart or you don't.  If there's an error serious enough
>>to prevent shutdown, you want to look into it anyways.  But since your
>>use-case apparently calls for this functionality, go ahead, do it, and
>>have fun ;)  I'd probably -1 any proposed patches as useless bloat.
>>
> It isn't like this functionaliy is new. Most major daemons in existance 
> implement this. Apache, MySQL, Postgres, Sendmail, I could go on.
>

Use jsvc from commons-daemon.  It implements restart semantics (at least if 
you don't use the one that ships with Tomcat :).

> In fact Tomcat is the odd man out on this guy. Every single daemon on my 
> Unix box implements this version of semantic control except Tomcat.
>
> The major issue is for scripts. Even most major Linux distribution tools 
> like the sysv init tools under KDE assume that scripts can do shutdown 
> correctly or return an error code.
>
> Kevin
>
> -- 
>
> Use Rojo (RSS/Atom aggregator).  Visit http://rojo.com. Ask me for an 
> invite!  Also see irc.freenode.net #rojo if you want to chat.
>
> Rojo is Hiring! - http://www.rojonetworks.com/JobsAtRojo.html
>
> If you're interested in RSS, Weblogs, Social Networking, etc... then you 
> should work for Rojo!  If you recommend someone and we hire them you'll 
> get a free iPod!
>    Kevin A. Burton, Location - San Francisco, CA
>       AIM/YIM - sfburtonator,  Web - http://peerfear.org/
> GPG fingerprint: 5FB2 F3E2 760E 70A8 6174 D393 E84D 8D04 99F1 4412 




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to