Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 255390 - '/etc/init.d/tomcat-6 stop' broken
Summary: '/etc/init.d/tomcat-6 stop' broken
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-18 15:20 UTC by alex
Modified: 2009-01-19 09:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description alex 2009-01-18 15:20:42 UTC
tomcat won't stop because of the broken init script

Reproducible: Always

Steps to Reproduce:
# /etc/init.d/tomcat-6 stop

Actual Results:  
* Stopping Tomcat...
* start-stop-daemon: --make-pidfile is only relevant with --start         [ !! ]
* ERROR: tomcat-6 failed to stop

Expected Results:  
should stop

Just remove '--make-pidfile' from the stop() section.
Comment 1 Alistair Bush (RETIRED) gentoo-dev 2009-01-18 18:01:08 UTC
emerge -pv tomcat and emerge --info please?  Ive had a look and can't find this.
Comment 2 alex 2009-01-18 21:25:28 UTC
Already fixed. This was REALLY fast!
Comment 3 Mike Weissman 2009-01-18 21:35:56 UTC
(In reply to comment #2)
> Already fixed. This was REALLY fast!
> 

I don't see what was broken in the first place. You never stated how this was reproducible.

-weisso 
Comment 4 alex 2009-01-18 21:41:09 UTC
The stop() function of /etc/init.d/tomcat-6 contained
--
start-stop-daemon ... --make-pidfile ...
--
in it which prevented tomcat from stopping.
Comment 5 Mike Weissman 2009-01-18 21:50:05 UTC
(In reply to comment #4)
> The stop() function of /etc/init.d/tomcat-6 contained
> --
> start-stop-daemon ... --make-pidfile ...
> --
> in it which prevented tomcat from stopping.
> 
That should be there. 

But as per comment #1 , we don't know which version of tomcat you are referring too, and if this an issue when upgrading openrc or something. 

-weisso
Comment 6 alex 2009-01-18 21:55:28 UTC
ok, i'm going too fast. here's the current config, the problem got fixed with upgrade from tomcat-6.0.18 to tomcat-6.0.18-r1
--
# emerge -pv tomcat

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] www-servers/tomcat-6.0.18-r1  USE="-doc -examples -source -test                                                                              " 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB


# emerge --info
Portage 2.1.6.4 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.27-                                                                              gentoo-r7 x86_64)
=================================================================
System uname: Linux-2.6.27-gentoo-r7-x86_64-AMD_Athlon-tm-_Dual_Core_Processor_                                                                              4850e-with-glibc2.2.5
Timestamp of tree: Sun, 18 Jan 2009 21:15:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.5.2-r7
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -msse3 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /home/xbmc /usr/share/xbmc/userdata /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc                                                                              /eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/p                                                                              hp/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext                                                                              -active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -msse3 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache collision-protect distlocks fixpackages metadata-transfer para                                                                              llel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distro.ibiblio.org/pub/linux/distributions/gentoo/ "
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress                                                                               --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exc                                                                              lude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/voip /usr/portage/local/custom"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow acl acpi amd64 bash-completion berkdb bzip2 cli cracklib crypt cups                                                                               dri fortran gdbm gpm iconv isdnlog midi mmx mudflap multilib ncurses nls nptl n                                                                              ptlonly openmp pam pcre perl pppd python readline reflection session spl sse ss                                                                              e2 ssl sysfs syslog tcpd threads unicode usb vim-syntax xorg zlib" ALSA_CARDS="                                                                              ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens137                                                                              1 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio v                                                                              ia82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="iec958 linear adpcm alaw asym co                                                                              py dmix dshare dsnoop empty extplug file hooks ioplug ladspa lfloat meter mmap_                                                                              emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actio                                                                              ns alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file a                                                                              uthz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoin                                                                              dex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter fil                                                                              e_cache filter headers include info log_config logio mem_cache mime mime_magic                                                                               negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_a                                                                              lias proxy proxy_http proxy_connect" ELIBC="glibc" INPUT_DEVICES="keyboard mous                                                                              e" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm00                                                                              1 mtxorb ncurses text" LIRC_DEVICES="igorplugusb" USERLAND="GNU" VIDEO_CARDS="f                                                                              glrx radeonhd"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_                                                                              ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPT                                                                              S
--
Comment 7 Alistair Bush (RETIRED) gentoo-dev 2009-01-19 09:42:03 UTC
Yes,  was fixed a cvs a while ago (5 weeks).  But more interestingly it had been there since may 2007.

Anyway.  dead and buried.