I'm guessing this isn't a Gentoo specific thing, but I'm not sure who is best suited to discuss this: The second item in the /proc/pid/stat file contains the name of the executable, but it seems to chop off at 15 characters: tc@tc3 ~/svn/trunk $ ps ax | grep 21883 21883 ? Rsl 33:01 /g4/servers/measurement/measurement_server --daemon 22507 pts/2 S+ 0:00 grep 21883 tc@tc3 ~/svn/trunk $ cat /proc/21883/stat 21883 (measurement_ser) R 1 21883 21883 0 -1 8396864 723 0 0 0 120384 78625 0 0 25 0 5 0 110736764 40042496 732 4294967295 134512640 134652717 3218209664 1162167666 646 0 16387 4096 65536 4294967295 0 0 17 1 0 0 This seems to break using start-stop-daemon with those processes when you try and do it by "--name", because it searches there for the name of the application. I'm sure this may not be considered a bug, but I'd at least like to find out where to go to discuss this further, because it seems very logicaly that having more than 15 characters in an application name would be prudent.
man pgrep: <snip> The process name used for matching is limited to the 15 characters present in the output of /proc/pid/stat. Use the -f option to match against the complete command line, /proc/pid/cmdline. </snip> Otherwise, see /usr/include/sys/procfs.h This is not a bug, closing.
mmkay, but how does this fix start-stop-daemon?
(In reply to comment #2) > mmkay, but how does this fix start-stop-daemon? Well, it doesn't... :) start-stop-daemon --name uses an erroneous assumption. If you meant this as a start-stop-daemon bug, then reopen it and assign to uberlord most likely. Patching glibc is not a viable solution, IMHO.
will try that. I figured the 15 character limit was set by somewhere, but I'm more concerned with being able to start and stop my long daemoned file names :)
trying a reassign
Caleb, which baselayout version is this against? 1.12 has a start-stop-daemon wrapper that does stop all by itself and should not encounter this limit. Marking as WONTFIX. Re-open if this bug is present in 1.12 or you disagree.
It's 1.11.14-r6. I've give 1.12 a whirl - thanks.