I used '/etc/init.d/tomcat-6 start' to start tomcat: # /etc/init.d/tomcat-6 start * Starting Tomcat ... [ !! ] (Though, it seems like there may have been a problem with the startup?) I did not attempt to install any application yet. When I try to stop tomcat with '/etc/init.d/tomcat-6 stop', the following result is obtained: * WARNING: tomcat-6 has not yet been started. A single tomcat-owned process is running: # ps -ef | grep -i tomcat tomcat 2466 1 4 16:58 ? 00:00:02 /opt/icedtea6-bin-1.9.7/bin/java -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/var/lib/tomcat-6//conf/logging.properties -classpath /usr/share/tomcat-6//lib:/opt/icedtea6-bin-1.9.7/lib/tools.jar:/usr/share/tomcat-6//bin/bootstrap.jar:/usr/share/tomcat-6//bin/tomcat-juli.jar -Dcatalina.base=/var/lib/tomcat-6/ -Dcatalina.home=/usr/share/tomcat-6/ -Djava.io.tmpdir=/var/tmp/tomcat-6/ org.apache.catalina.startup.Bootstrap start Reproducible: Always Steps to Reproduce: 1./etc/init.d/tomcat-6 stop 2. 3. Actual Results: In case it helps, here is /var/log/tomcat-6/catalina.out: Feb 18, 2011 5:10:21 PM org.apache.catalina.core.AprLifecycleListener init INFO: Loaded APR based Apache Tomcat Native library 1.1.20. Feb 18, 2011 5:10:21 PM org.apache.catalina.core.AprLifecycleListener init INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. Feb 18, 2011 5:10:22 PM org.apache.coyote.http11.Http11AprProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Feb 18, 2011 5:10:22 PM org.apache.coyote.ajp.AjpAprProtocol init INFO: Initializing Coyote AJP/1.3 on ajp-8009 Feb 18, 2011 5:10:22 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1736 ms Feb 18, 2011 5:10:22 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Feb 18, 2011 5:10:22 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.32 Feb 18, 2011 5:10:22 PM org.apache.catalina.startup.HostConfig deployDescriptor INFO: Deploying configuration descriptor manager.xml Feb 18, 2011 5:10:22 PM org.apache.catalina.startup.HostConfig deployDescriptor INFO: Deploying configuration descriptor host-manager.xml Feb 18, 2011 5:10:22 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory ROOT Feb 18, 2011 5:10:23 PM org.apache.coyote.http11.Http11AprProtocol start INFO: Starting Coyote HTTP/1.1 on http-8080 Feb 18, 2011 5:10:23 PM org.apache.coyote.ajp.AjpAprProtocol start INFO: Starting Coyote AJP/1.3 on ajp-8009 Feb 18, 2011 5:10:23 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 978 ms Expected Results: Successful result of '/etc/init.d/tomcat-6 stop' - stopping Tomcat. # emerge --info Portage 2.1.9.25 (default/linux/amd64/10.0, gcc-4.4.4, glibc-2.11.2-r3, 2.6.36-gentoo-r5 x86_64) ================================================================= System uname: Linux-2.6.36-gentoo-r5-x86_64-Intel-R-_Core-TM-_i5_CPU_M_540_@_2.53GHz-with-gentoo-1.12.14 Timestamp of tree: Fri, 18 Feb 2011 01:45:01 +0000 app-shells/bash: 4.1_p9 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.6.6-r1, 3.1.2-r4 dev-util/cmake: 2.8.1-r2 sys-apps/baselayout: 1.12.14-r1 sys-apps/sandbox: 2.4 sys-devel/autoconf: 2.13, 2.65-r1 sys-devel/automake: 1.4_p6-r1, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.4.4-r2 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.10 sys-devel/make: 3.81-r2 virtual/os-headers: 2.6.36.1 (sys-kernel/linux-headers) ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5.2/ext-active/ /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.2/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.2/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://mirror.mcs.anl.gov/pub/gentoo/ http://gentoo.chem.wisc.edu/gentoo/ http://mirrors.cs.wmich.edu/gentoo http://www.cyberuse.com/gentoo/ http://mirror.datapipe.net/gentoo http://gentoo.mirrors.easynews.com/linux/gentoo/ http://chi-10g-1-mirror.fastsoft.net/pub/linux/gentoo/gentoo-distfiles/ http://www.gtlib.gatech.edu/pub/gentoo http://gentoo.mirrors.hoobly.com/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://lug.mtu.edu/gentoo/ http://gentoo.netnitco.net http://gentoo.osuosl.org/ http://gentoo.mirrors.pair.com/ http://mirrors.rit.edu/gentoo/ http://mirror.iawnet.sandia.gov/gentoo/ http://gentoo.llarian.net/ http://gentoo.mirrors.tds.net/gentoo http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://mirror.lug.udel.edu/pub/gentoo/ http://mirror.its.uidaho.edu/pub/gentoo/ http://gentoo.cites.uiuc.edu/pub/gentoo/ http://gentoo.cs.uni.edu/ http://mirror.usu.edu/mirrors/gentoo/" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/pentoo /usr/local/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="acl alsa amd64 apic berkdb bzip2 cdr clflush cli cmov constant_tsc cracklib crypt cups cx8 cxx dbus de dri dvd fortran fpu fxsr gdbm gpm iconv ipv6 kde lahf_lm lm mca mce mmx modules monitor msr mtrr mudflap multilib ncurses nls nptl nptlonly nx openmp pae pam pat pcre perl pge phonon pni pppd pse pse36 python qt3support qt4 readline rep_good sep session sse sse2 ssl ssse3 syscall sysfs tcpd tsc unicode up vme xorg zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="virtualbox evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="virtualbox" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Some what a duplicate of bug 235795, or at least known and mentioned on that bug. Sorry, but a temp fix is to update to openrc echo sys-apps/baselayout >> /etc/portage/package.keywords echo sys-apps/openrc >> /etc/portage/package.keywords Might need udev as well can't recall.
Same problem here. Updating to openrc on a production system isn't a good idea though. www-servers/tomcat-6.0.32-r1 is in the stable tree now so it shouldn't depend on any packages from the testing tree.
(In reply to comment #2) > Updating to openrc on a production system isn't a good idea though. I and a few others use openrc on servers. There's a tracker bug to get it into stable. > www-servers/tomcat-6.0.32-r1 is in the stable tree now so it shouldn't depend > on any packages from the testing tree. You have a point here, though.
(In reply to comment #2) > Updating to openrc on a production system isn't a good idea though. Nonsense my interesting maintain Tomcat is from a production system stand point of view. I run openrc on all my production systems across the board, including my production Tomcat server.... (In reply to comment #3) > >(In reply to comment #2) > > www-servers/tomcat-6.0.32-r1 is in the stable tree now so it shouldn't depend > > on any packages from the testing tree. > > You have a point here, though. It does not depend on anything from the unstable tree. That is just an option so you can get things working no. Its a long story if you read other bug you will start to get an idea. I referenced the wrong bug # in comment 1, but clearly people are not loooking at open bugs when filing new ones. Please read bug 191611 as this is a dup of that one. Please close this bug as a duplicate ASAP, ty! The old init script kept a instance of s-s-d running the entire time Tomcat is running. Which is hardly good or ideal on production systems, and its been that way for years now.... I was attempting to no longer have s-s-d running all the time, yet still retain output to catalina.out. I need to just drop support for catalina.out in the init script all together, as I did in 7.0. I accomplished the goal but for some reason came with an unwanted side effect. When tomcat starts, s-s-d is not notified so it thinks it did not start. Likely due to a subshell or something. Either way tomcat does start, just s-s-d is not aware of it, thus assumes it did not start. s-s-d pre-openrc is a piece of crap IMHO. openrc should have been stabilized long ago and I hope it is sometime really soon. Its years in the making, way past due to be in tree and stabilized IMHO. Though likely some reasons why it has not been. Either way time to move forward not backward, and really rather not repeat myself again as most all of this is documented on bug 191611, short of the work around, which I can add to that bug.
Closing per William's comment. *** This bug has been marked as a duplicate of bug 191611 ***
So this leaves people with the option of keywording baselayout and openrc or mask any stable tomcat versions equal or higher 6.0.26. Don't get me wrong, I am all for openrc and the new baselayout but if an init script of a package in stable is not working properly and the only way to get it to work is pulling in packages from testing, this package shouldn't have been stabilized in the first place.