https://bugzilla.redhat.com/show_bug.cgi?id=842346
--- Comment #9 from Paul P Komkoff Jr <i(a)stingr.net> ---
Well, the thing is there's a lot of shell magic that sets up environment
variables and common pattern to solve it is to drop a small wrapper for it.
"start-new" is just a hack, I've replaced it with start now.
In fact, this is my current setup:
[Service]
Type=simple
EnvironmentFile=/etc/tomcat/tomcat.conf
EnvironmentFile=-/etc/sysconfig/tomcat@%I
Environment="NAME=%I"
ExecStart=/usr/sbin/tomcat start
ExecStop=/usr/sbin/tomcat stop
SuccessExitStatus=143
User=tomcat
Group=tomcat
tomcat.conf is severely reduced, if you don't drop sysconfig/tomcat@NAME it
means that catalina.base is /var/lib/tomcats/NAME (while .home is still
/usr/share/tomcat, so binaries and libraries are from there)
execstop is needed because this thing shuts down through the message on
shutdown port, but then we still have systemd kill whatever is accidentally
left.
In the end I think the best option is still to have a wrapper script but it's
much better than what it was before I started.
I'll post the scripts and stuff shortly.
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug
https://bugzilla.redhat.com/token.cgi?t=QtZg2hSE4B&a=cc_unsubscribe