Howdy,

>1) I want to call setsid (on platforms that support it) after the
detach,
>since evil things happen if I don't (at least on RH Linux).

Good idea,

>2) I want to add a -outfile and -errfile to the config options
(consistant
>with procrun, and both defaulting to /dev/null).  stdin will get
redirected
>to /dev/null, and stdout & stderr will get redirected to the values of
the
>variables.  If I can get it to work, I'd also like to add the special
>values
>"&1" and "&2" to simulate "2>&1".  As it stands now, manually stopping
and
>starting Tomcat with jsvc hangs my ssh session on logout, since it
still
>has
>open files to the pty.

Also good idea, as long as &1 and &2 are well-documented, as those are
not standard unix.

>3) Modify Tomcat.sh to reflect the changes in 2) (e.g. add:
>    -outfile $CATALINA_HOME/logs/catalina.out \
>    -errfile &1 \
>    ).

Cool.

+1.

I also agree with keeping daemon in the commons and possibly promoting
it out of the sandbox into commons-proper.  I think the functionality it
offers is generic beyond tomcat, and I for one plan to use it for things
other than tomcat. ;)

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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

Reply via email to