Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 230233 - start-stop-daemon: --quiet should take precedence over --test
Summary: start-stop-daemon: --quiet should take precedence over --test
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-30 18:37 UTC by Paweł Hajdan, Jr. (RETIRED)
Modified: 2008-06-30 20:56 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 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2008-06-30 18:37:11 UTC
--quiet is expected to shut up all non-error output. --test is supposed to print operations that would be taken, but only pretend, and return appropriate error code.

/etc/init.d/xdm init script in baselayout-1.12.11.1 uses it in a following way:

if start-stop-daemon --quiet --test --stop --exec "${myexe}" ; then
                start-stop-daemon --stop --exec "${myexe}" --retry TERM/5/TERM/5 \
                        ${mypidfile:+--pidfile} ${mypidfile} \
                        ${myname:+--name} ${myname}
                retval=$?
        fi

Leading to messages like "Would send signal X to process Y". If --quiet took precedence over --test printing the messages, it would be a lot nicer IMHO.
Comment 1 Roy Marples 2008-06-30 20:43:13 UTC
--quiet takes precedence in OpenRC, so this is already fixed,