New /etc/X11/startDM.sh that belongs to x11-apps/xinit after uograde to 1.3.4-r2 uses /lib/gentoo/functions.sh instead of /etc/init.d/functions.sh, what causes /etc/init.d/xdm script to fail to start: # service xdm restart xdm | * Stopping sddm ... xdm | * start-stop-daemon: no matching processes found [ ok ] xdm | * Setting up sddm ... xdm |/etc/X11/startDM.sh: line 26: get_options: command not found xdm |/etc/X11/startDM.sh: line 27: get_options: command not found xdm |/etc/X11/startDM.sh: line 28: get_options: command not found xdm |/etc/X11/startDM.sh: line 29: get_options: command not found xdm |start-stop-daemon: option '--exec' requires an argument xdm |Usage: start-stop-daemon [options] xdm | xdm |Options: [ I:KN:PR:Sa:bc:d:e:g:ik:mn:op:s:tu:r:w:x:1:2:ChqVv ] xdm | -I, --ionice <arg> Set an ionice class:data when starting xdm | -K, --stop Stop daemon xdm | -N, --nicelevel <arg> Set a nicelevel when starting xdm | -R, --retry <arg> Retry schedule to use when stopping xdm | -S, --start Start daemon xdm | -a, --startas <arg> deprecated, use --exec or --name xdm | -b, --background Force daemon to background xdm | -c, --chuid <arg> deprecated, use --user xdm | -d, --chdir <arg> Change the PWD xdm | -e, --env <arg> Set an environment string xdm | -k, --umask <arg> Set the umask for the daemon xdm | -g, --group <arg> Change the process group xdm | -i, --interpreted Match process name by interpreter xdm | -m, --make-pidfile Create a pidfile xdm | -n, --name <arg> Match process name xdm | -o, --oknodo deprecated xdm | -p, --pidfile <arg> Match pid found in this file xdm | -s, --signal <arg> Send a different signal xdm | -t, --test Test actions, don't do them xdm | -u, --user <arg> Change the process user xdm | -r, --chroot <arg> Chroot to this directory xdm | -w, --wait <arg> Milliseconds to wait for daemon start xdm | -x, --exec <arg> Binary to start/stop xdm | -1, --stdout <arg> Redirect stdout to file xdm | -2, --stderr <arg> Redirect stderr to file xdm | -P, --progress Print dots each second while waiting xdm | -h, --help Display this help output xdm | -C, --nocolor Disable color output xdm | -V, --version Display software version xdm | -v, --verbose Run verbosely xdm | -q, --quiet Run quietly (repeat to suppress errors) xdm | * ERROR: could not start the Display Manager I set this as a major issue (unable to start whole XOrg) Reproducible: Always Steps to Reproduce: 1. emerge =x11-apps/xinit-1.3.4-r2 2. /etc/init.d/xdm start Actual Results: # service xdm restart xdm | * Stopping sddm ... xdm | * start-stop-daemon: no matching processes found [ ok ] xdm | * Setting up sddm ... xdm |/etc/X11/startDM.sh: line 26: get_options: command not found xdm |/etc/X11/startDM.sh: line 27: get_options: command not found xdm |/etc/X11/startDM.sh: line 28: get_options: command not found xdm |/etc/X11/startDM.sh: line 29: get_options: command not found xdm |start-stop-daemon: option '--exec' requires an argument xdm |Usage: start-stop-daemon [options] xdm | xdm |Options: [ I:KN:PR:Sa:bc:d:e:g:ik:mn:op:s:tu:r:w:x:1:2:ChqVv ] xdm | -I, --ionice <arg> Set an ionice class:data when starting xdm | -K, --stop Stop daemon xdm | -N, --nicelevel <arg> Set a nicelevel when starting xdm | -R, --retry <arg> Retry schedule to use when stopping xdm | -S, --start Start daemon xdm | -a, --startas <arg> deprecated, use --exec or --name xdm | -b, --background Force daemon to background xdm | -c, --chuid <arg> deprecated, use --user xdm | -d, --chdir <arg> Change the PWD xdm | -e, --env <arg> Set an environment string xdm | -k, --umask <arg> Set the umask for the daemon xdm | -g, --group <arg> Change the process group xdm | -i, --interpreted Match process name by interpreter xdm | -m, --make-pidfile Create a pidfile xdm | -n, --name <arg> Match process name xdm | -o, --oknodo deprecated xdm | -p, --pidfile <arg> Match pid found in this file xdm | -s, --signal <arg> Send a different signal xdm | -t, --test Test actions, don't do them xdm | -u, --user <arg> Change the process user xdm | -r, --chroot <arg> Chroot to this directory xdm | -w, --wait <arg> Milliseconds to wait for daemon start xdm | -x, --exec <arg> Binary to start/stop xdm | -1, --stdout <arg> Redirect stdout to file xdm | -2, --stderr <arg> Redirect stderr to file xdm | -P, --progress Print dots each second while waiting xdm | -h, --help Display this help output xdm | -C, --nocolor Disable color output xdm | -V, --version Display software version xdm | -v, --verbose Run verbosely xdm | -q, --quiet Run quietly (repeat to suppress errors) xdm | * ERROR: could not start the Display Manager Expected Results: Xorg started
Manually editing /etc/X11/startDM.sh and changing path from /lib/gentoo/functions.sh to /etc/init.d/functions.sh fixed the problem.
Have anyone ever tested this before committing change?!
*** This bug has been marked as a duplicate of bug 634706 ***