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 2. 3. 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: foo confirmed on amd64 and x86
This has been fixed in commit 70a3a3cf39f5cf0efa888cf3a2a377ef08fd6f50 http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=70a3a3cf39f5cf0efa888cf3a2a377ef08fd6f50