Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 254281 - =sys-apps/baselayout-1* - start-stop-daemon ignores "--quiet" option with "--test" enabled.
Summary: =sys-apps/baselayout-1* - start-stop-daemon ignores "--quiet" option with "--...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-09 01:59 UTC by Navid Zamani
Modified: 2009-10-11 00:31 UTC (History)
0 users

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 Navid Zamani 2009-01-09 01:59:49 UTC
start-stop-daemon, when used with the "--test" option, normally prints what it would do, instead of doing it, and returns the exit status for it too. 
The "--quiet" option normally makes start-stop-daemon not print anything at all.

Using them both together, "--quiet" gets ignored, and everything works as if it weren't there.
This makes it impossible, to use start-stop-daemon's exit status together with "--test", to test if it would do anything, without outputting something.
As a workaround, of course, one can redirect output so /dev/null. But then there is no reason for the existence of the "--quiet" option.

So please make the "--quiet" option work in that case too (again).

Thank you. :D

Reproducible: Always

Steps to Reproduce:
-- Either (a) --
1. Get the init-script from =net-p2p/mldonkey-2.9.6.
2. Go to the while loop on line 55-65 with an editor.
3. Extract the loop, and save it as a separate script.
4. Replace $MLDONKEY_TIMEOUT with 10, and $MLDONKEY_BINARY and $SVCNAME with the values for one of your running services. (No danger of killing them here.)

-- Or (b) --
1. Install =net-p2p/mldonkey-2.9.6.
2. Execute /etc/init.d/mldonkey start.
3. Wait 15 seconds.
4. Execute /etc/init.d/mldonkey stop.
Actual Results:  
-- For (a) and PID 12345 --
Would send signal 15 to 12345.
Would send signal 15 to 12345.
Would send signal 15 to 12345.
Would send signal 15 to 12345.
Would send signal 15 to 12345.
Would send signal 15 to 12345.
Would send signal 15 to 12345.
Would send signal 15 to 12345.
Would send signal 15 to 12345.
Would send signal 15 to 12345.

-- For (b) and PID 12345 --
 * Service mldonkey stopping
 * Stopping mldonkey -- please wait ...
Would send signal 15 to 12345.
Would send signal 15 to 12345.
Would send signal 15 to 12345.
[ ok ]
 * Service mldonkey stopped

Expected Results:  
-- For (a) --
(nothing)

-- For (b) --
 * Service mldonkey stopping
 * Stopping mldonkey -- please wait ... [ ok ]
 * Service mldonkey stopped

Simple bug. Unfortunately I'm not safe enough to meddle with the bowels of baselayout and submit patches for it.
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-01-09 02:13:09 UTC
What version of sys-apps/openrc do you have installed? I cannot reproduce this with openrc-0.4.1-r1:

barcelona:~ # start-stop-daemon --test --quiet --stop --exec /usr/kde/3.5/bin/kdm
barcelona:~ # start-stop-daemon --test --stop --exec /usr/kde/3.5/bin/kdm
* Would send signal 15 to PID 30520
barcelona:~ #
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-01-09 02:29:58 UTC
Oh, forget about my question from comment #1 in case you have sys-apps/baselayout-1* installed. Just found out that start-stop-daemon from baselayout-1* show this behavior.

Anyway, please provide the output from

  emerge --info

when reporting bugs.
Comment 3 Navid Zamani 2009-01-09 02:57:08 UTC
Hey, I have baselayout-2.0.0 and openrc-0.4.1-r1 installed.

Here's the output of "emerge --info": (Someone should change bugzilla to not ask for the URL, but for the output of "emerge --info" instead. :)

Portage 2.1.6.4 (default/linux/amd64/2008.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r1, 2.6.28-rc4-zen1 x86_64)
=================================================================
System uname: Linux-2.6.28-rc4-zen1-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4400+-with-glibc2.2.5
Timestamp of tree: Sat, 03 Jan 2009 04:20:01 +0000
app-shells/bash:     3.2_p48
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.5.2-r8
dev-util/cmake:      2.6.2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.1-r1
sys-apps/sandbox:    1.3.2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.50.0.1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -fomit-frame-pointer -fno-ident -fweb -pipe -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=athlon64 -fomit-frame-pointer -fno-ident -fweb -pipe -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="collision-protect distlocks fixpackages metadata-transfer parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://de-mirror.org/distro/gentoo/ http://mirror.muntinternet.net/pub/gentoo/"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu"
LINGUAS="de en en_GB fr"
MAKEOPTS="-j3 -s"
PKGDIR="/usr/portage/packages"
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="/usr/local/portage/layman/sunrise /usr/local/portage/layman/pro-audio /usr/local/portage/layman/desktop-effects /usr/local/portage/layman/java-overlay /usr/local/portage/layman/hollow /usr/local/portage/layman/xwing /usr/local/portage/layman/pda /usr/local/portage/layman/roslin /usr/local/portage/layman/arcon /usr/local/portage /usr/local/portage/layman/zen-overlay"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac acl acpi aim alsa amd64 arts bash-completion berkdb bluetooth branding bzip2 cairo caps cddb cdr clamav cli cracklib crypt css curl curlwrappers dbus dga directfb doc dri dts dvd dvdr dvdread emboss encode enscript esd evo exif fam fbcon ffmpeg firefox flac fortran ftp gd gdbm geoip gif gimp glut gnutls gphoto2 gpm gstreamer hal hddtemp htmlhandbook iconv icq idn imagemagick imap inifile isdnlog jabber jack java java6 javascript jbig jikes jingle joystick jpeg jpeg2k kde lame lash lcms libnotify lm_sensors mad maildir matroska midi mikmod mime mmap mmx mng mp3 mpeg msn mudflap multilib musepack musicbrainz ncurses nls nntp nptl nptlonly nsplugin nvidia ocaml ocamlopt odbc offensive ogg openal opengl openmp oscar pam pcre pda pdf perl png portaudio posix postgres ppds pppd prelude python qt3 qt3support quicktime rdesktop readline reflection rss sdl session sharedmem smartcard sockets speex spell spl sse sse2 ssl startup-notification subversion svg sysfs syslog sysvipc taglib tcpd tiff truetype unicode usb v4l v4l2 vcd vim-syntax vnc vorbis x264 xattr xcomposite xface xml xorg xpm xscreensaver xulrunner xv xvid xvmc yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 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" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en en_GB fr" USERLAND="GNU" VIDEO_CARDS="nvidia nv"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-01-09 04:39:54 UTC
I still cannot reproduce this problem (again tested with openrc-0.4.1-r1). I tried to use the same set of options that are used in mldonkey init script:

barcelona:~ # start-stop-daemon --test --quiet --stop --exec /usr/sbin/sshd --pidfile /var/run/sshd.pid
barcelona:~ # start-stop-daemon --test --stop --exec /usr/sbin/sshd --pidfile /var/run/sshd.pid
* Would send signal 15 to PID 9214
barcelona:~ #

Could you maybe provide some start-stop-daemon command which shows your problem?
Comment 5 Navid Zamani 2009-01-09 13:33:20 UTC
Oh, damn, no.... I gave you the "emerge --info" of the wrong system. :(
openrc is not even installed there. It's a hardened system.
Sorry for that... Here's the correct one:

Portage 2.1.6.4 (hardened/x86/2.6, gcc-3.4.6, glibc-2.6.1-r0, 2.6.25-hardened-r8 i686)
=================================================================
System uname: Linux-2.6.25-hardened-r8-i686-AMD_Athlon-tm-_XP_3000+-with-glibc2.3.2
Timestamp of tree: Fri, 02 Jan 2009 16:20:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.5.2-r7
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.4.7-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 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.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mtune=athlon-xp -fomit-frame-pointer -pipe -falign-functions=4 -fweb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -mtune=athlon-xp -fomit-frame-pointer -pipe -falign-functions=4 -fweb"
DISTDIR="/usr/portage/distfiles"
FEATURES="candy ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://mir.zyrianes.net/gentoo/ http://www.gigaload.org/gentoo.org/"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LDFLAGS=""
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=300"
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="/usr/portage/local/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="3dnow aalib acl acpi alsa apache2 audiofile bash-completion bluetooth bzip2 chroot clamav cracklib crypt cscope cups curl curlwrappers dbm dedicated dio doc encode examples exif expat fam fbcon fftw flac flash flatfile foomaticdb ftp gd gdbm geoip gpm gstreamer hardened hardenedphp idn imagemagick imap imlib innodb java javascript jbig jikes jpeg jpeg2k junit lash lcms libcaca libwww lm_sensors mad maildir matroska memlimit midi mime ming mmap mmx mng mp3 mpeg mysql mysqli ncurses nls nocd nptl nptlonly ocaml offensive ogg oggvorbis pam pcre pdf perl php pic png portaudio posix postgres ppds prelude python readline samba sasl session sharedmem shorten simplexml sndfile sockets source sox speex spell spl sse ssl svg syslog tcpd threads tidy tiff tokenizer truetype unicode urandom usb utf8 vhosts vorbis x86 xml xorg xsl zeo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1     emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m       maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" ELIBC="glibc" FRITZCAPI_CARDS="fcpci" INPUT_DEVICES="mouse keyboard evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt intel        mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage       siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware         voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 6 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-01-09 14:09:33 UTC
No problems. We're all just humans ;)
Concerning your bug, I don't think this will be fixed in baselayout-1* as the big plan is to replace baselayout-1* with baselayout-2* and openrc where this "problem" does not exist.

Anyway, reassigning to base-system herd so they can decide what to wo with this bug.
Comment 7 Navid Zamani 2009-01-27 16:29:59 UTC
Ok. :)

It would be nice, to have some kind of roadmap / time table on when baselayout-2 is expected to hit stable and hardened profiles. ...if that level of organization exists. (Only teasing... ;)

Comment 8 SpanKY gentoo-dev 2009-10-11 00:31:24 UTC
no plans to fix ssd for baselayout-1