Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 373609 - sys-apps/openrc: start-stop-daemon no longer honors the -a switch
Summary: sys-apps/openrc: start-stop-daemon no longer honors the -a switch
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: OpenRC Team
Keywords: InVCS
Depends on:
Blocks: 374183
  Show dependency tree
Reported: 2011-06-30 16:05 UTC by Mark Keisler
Modified: 2011-07-06 01:59 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
Description Mark Keisler 2011-06-30 16:05:05 UTC
with the switch to openrc and baselayout2, start-stop-daemon no longer honors the -a switch.  If you spell out --startas, it does work.

Reproducible: Always

Steps to Reproduce:
1.Use -a with start-stop-daemon
Actual Results:  

# start-stop-daemon -S -a /bin/echo foo
start-stop-daemon: invalid option -- 'a'
Usage: start-stop-daemon [options] 

Options: [I:KN:PR:Sbc:d:e:g:ik:mn:op:s:tu:r:w:x:1:2:ChqVv]
  -I, --ionice <arg>                Set an ionice class:data when starting
  -K, --stop                        Stop daemon
  -N, --nicelevel <arg>             Set a nicelevel when starting
  -R, --retry <arg>                 Retry schedule to use when stopping
  -S, --start                       Start daemon
  -a, --startas <arg>               deprecated, use --exec or --name
  -b, --background                  Force daemon to background
  -c, --chuid <arg>                 deprecated, use --user
  -d, --chdir <arg>                 Change the PWD
  -e, --env <arg>                   Set an environment string
  -k, --umask <arg>                 Set the umask for the daemon
  -g, --group <arg>                 Change the process group
  -i, --interpreted                 Match process name by interpreter
  -m, --make-pidfile                Create a pidfile
  -n, --name <arg>                  Match process name
  -o, --oknodo                      deprecated
  -p, --pidfile <arg>               Match pid found in this file
  -s, --signal <arg>                Send a different signal
  -t, --test                        Test actions, don't do them
  -u, --user <arg>                  Change the process user
  -r, --chroot <arg>                Chroot to this directory
  -w, --wait <arg>                  Milliseconds to wait for daemon start
  -x, --exec <arg>                  Binary to start/stop
  -1, --stdout <arg>                Redirect stdout to file
  -2, --stderr <arg>                Redirect stderr to file
  -P, --progress                    Print dots each second while waiting
  -h, --help                        Display this help output
  -C, --nocolor                     Disable color output
  -V, --version                     Display software version
  -v, --verbose                     Run verbosely
  -q, --quiet                       Run quietly

Expected Results:  

confirmed on amd64 and x86
Comment 1 Christian Ruppert (idl0r) gentoo-dev 2011-06-30 18:30:36 UTC
This has been fixed in commit 70a3a3cf39f5cf0efa888cf3a2a377ef08fd6f50;a=commit;h=70a3a3cf39f5cf0efa888cf3a2a377ef08fd6f50