View previous topic :: View next topic |
Author |
Message |
JKosta n00b

Joined: 11 Nov 2013 Posts: 32
|
Posted: Sun May 17, 2015 4:57 pm Post subject: [SOLVED] Lightdm: could not start the Display Manager |
|
|
I can't start lightdm:
Code: | jribeiro@genkosta ~ $ sudo /etc/init.d/xdm start
* Setting up lightdm ...
/etc/X11/startDM.sh: line 22: get_options: command not found
/etc/X11/startDM.sh: line 23: get_options: command not found
/etc/X11/startDM.sh: line 24: get_options: command not found
/etc/X11/startDM.sh: line 25: get_options: command not found
start-stop-daemon: option '--exec' requires an argument
Usage: start-stop-daemon [options]
Options: [I:KN:PR:Sa:bc: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 (repeat to suppress errors)
* ERROR: could not start the Display Manager |
Code: | jribeiro@genkosta ~ $ cat /etc/X11/startDM.sh
#!/bin/sh
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2
# $Header: /var/cvsroot/gentoo-x86/x11-apps/xinit/files/startDM.sh,v 1.5 2011/01/22 15:35:49 lxnay Exp $
# We need to source /etc/profile for stuff like $LANG to work
# bug #10190.
. /etc/profile
. /etc/init.d/functions.sh
# baselayout-1 compat
if ! type get_options >/dev/null 2>/dev/null ; then
[ -r "${svclib}"/sh/rc-services.sh ] && . "${svclib}"/sh/rc-services.sh
fi
# Great new Gnome2 feature, AA
# We enable this by default
export GDK_USE_XFT=1
export SVCNAME=xdm
EXEC="$(get_options service)"
NAME="$(get_options name)"
PIDFILE="$(get_options pidfile)"
START_STOP_ARGS="$(get_options start_stop_args)"
start-stop-daemon --start --exec ${EXEC} \
${NAME:+--name} ${NAME} ${PIDFILE:+--pidfile} ${PIDFILE} ${START_STOP_ARGS} || \
eerror "ERROR: could not start the Display Manager"
# vim:ts=4 |
Anyone knows how to fix this?
Last edited by JKosta on Thu May 21, 2015 8:47 pm; edited 2 times in total |
|
Back to top |
|
 |
eccerr0r Watchman

Joined: 01 Jul 2004 Posts: 7710 Location: almost Mile High in the USA
|
Posted: Mon May 18, 2015 10:25 pm Post subject: |
|
|
How old is your system, is your machine clean with emerge --deep --update --pretend world? Is your openrc up to date? Are you using systemd?
Does /lib/rc/bin/get_options exist? _________________ Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching? |
|
Back to top |
|
 |
JKosta n00b

Joined: 11 Nov 2013 Posts: 32
|
Posted: Wed May 20, 2015 12:38 pm Post subject: |
|
|
eccerr0r,
My system is up to date.
I'm using openrc, now.
get_options does exist:
Code: | jribeiro@genkosta ~ $ ls -l /lib/rc/bin/get_options
lrwxrwxrwx 1 root root 12 Mai 16 23:24 /lib/rc/bin/get_options -> /sbin/openrc |
The error says "get_options: command not found" and indeed that command doesn't exist. If I type it in terminal I get "bash: get_options: command not found" |
|
Back to top |
|
 |
Naib Watchman


Joined: 21 May 2004 Posts: 5881 Location: Removed by Neddy
|
Posted: Wed May 20, 2015 4:08 pm Post subject: |
|
|
it probably appears not to exist because a normal user won't have: /lib/rc/bin/ or /sbin in their $PATH variable.
what happens when you execute: /lib/rc/bin/get_options
the startDM is meant to source the correct files to correctly setup the PATH variable _________________ https://www.otw20.com/ Where you can talk |
|
Back to top |
|
 |
JKosta n00b

Joined: 11 Nov 2013 Posts: 32
|
Posted: Wed May 20, 2015 5:45 pm Post subject: |
|
|
I added /lib/rc/bin/ to ROOTPATH:
Code: | jribeiro@genkosta ~ $ sudo bash -c 'echo "ROOTPATH=\"/lib/rc/bin\"" >/etc/env.d/99local' |
It works, now.
Thanks to eccerr0r an Naib |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|