Code: Select all
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 ManagerCode: Select all
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=4Anyone knows how to fix this?

