Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 192656 - x11-apps/xinit - xdm initscript has wrong order of arguments to start-stop-daemon
Summary: x11-apps/xinit - xdm initscript has wrong order of arguments to start-stop-da...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-16 07:13 UTC by Jochen Trumpf
Modified: 2008-01-10 06:39 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 Jochen Trumpf 2007-09-16 07:13:11 UTC
In /etc/init.d/xdm stop, the start-stop-daemon line in the if statement (the one with --test) has the wrong order of arguments. It should read 
--stop --quiet --test --exec, not --quiet --test --stop --exec. In the current order of arguments "--quiet" is ignored, causing a message "Would send signal 15 to <kdm pid>" at shutdown.

Reproducible: Always
Comment 1 Jochen Trumpf 2007-09-17 22:30:46 UTC
OK, must have been looking at the wrong place for output after changing that. Changing the order of arguments does not affect the output at all. Some more testing on the commandline reveals that --quiet has no effect at all in --test mode:

# start-stop-daemon --stop --test --exec /usr/kde/3.5/bin/kdm
# start-stop-daemon --quiet --stop --test --exec /usr/kde/3.5/bin/kdm
# start-stop-daemon --stop --test --quiet --exec /usr/kde/3.5/bin/kdm

etc. all produce the same output

Would send signal 15 to 3644.
Would send signal 15 to 3504.

One is my current pid of kdm, the other that of "-:O". Maybe this is a bug in start-stop-daemon?
[I am not sure why only one of these messages appears in the on screen messages at shutdown. I can't recall ever seeing two such messages there.]
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2008-01-10 06:39:01 UTC
Apparently not xinit bug. File a new one for baselayout if you wish if that's not fixed w/ baselayout-2.