Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/sbin/rc-update: /etc/init.d/xdm not found; aborting (PPC)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Dutch
View previous topic :: View next topic  
Author Message
all4you
n00b
n00b


Joined: 07 Aug 2003
Posts: 9

PostPosted: Thu Aug 07, 2003 3:19 pm    Post subject: /sbin/rc-update: /etc/init.d/xdm not found; aborting (PPC) Reply with quote

Hallo

Ik kan KDE niet automatisch meer opstarten, omdat ik xdm in init.d verwijderd heb.

rc-update add xdm default

geeft

/sbin/rc-update: /etc/init.d/xdm not found; aborting

Nu is mijn vraag kan iemand dit bestand hier posten? Ik vind het nergens terug (Google) en anders moet ik altijd KDM manueel starten.

Jan
Back to top
View user's profile Send private message
M_Kelder
n00b
n00b


Joined: 02 Aug 2003
Posts: 16
Location: Netherlands

PostPosted: Thu Aug 07, 2003 5:54 pm    Post subject: Re: /sbin/rc-update: /etc/init.d/xdm not found; aborting (PP Reply with quote

all4you wrote:
Hallo

Ik kan KDE niet automatisch meer opstarten, omdat ik xdm in init.d verwijderd heb.

rc-update add xdm default

geeft

/sbin/rc-update: /etc/init.d/xdm not found; aborting

Nu is mijn vraag kan iemand dit bestand hier posten?
Code:
#!/sbin/runscript
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /home/cvsroot/gentoo-x86/x11-base/xfree/files/4.3.0/xdm.start,v 1.1 2003/02/28 04:28:29 seemant Exp $

# This is here to serve as a note to myself, and future developers.
#
# Any Display manager (gdm,kdm,xdm) have the following problem:  if
# it is started before any getty, and no vt is specified, it will
# usually run on vt2.  When the getty on vt2 then starts, and the
# DM is already started, the getty will take control of the keyboard,
# leaving us with a "dead" keyboard.
#
# Resolution: add the following line to /etc/inittab
#
#  x:a:once:/etc/X11/startDM.sh
#
# and have /etc/X11/startDM.sh start the DM in daemon mode if
# a lock is present (with the info of what DM should be started),
# else just fall through.
#
# How this basically works, is the "a" runlevel is a additional
# runlevel that you can use to fork processes with init, but the
# runlevel never gets changed to this runlevel.  Along with the "a"
# runlevel, the "once" key word means that startDM.sh will only be
# run when we specify it to run, thus eliminating respawning
# startDM.sh when "xdm" is not added to the default runleve, as was
# done previously.
#
# This script then just calls "tellinit a", and init will run
# /etc/X11/startDM.sh after the current runlevel completes (this
# script should only be added to the actual runlevel the user is
# using).
#
# Martin Schlemmer
# aka Azarah
# 04 March 2002


# Start X Font Server before X
depend() {
        use xfs hotplug
}

setup_dm() {
        source /etc/profile.env
        export PATH="/bin:/sbin:/usr/bin:/usr/sbin:${ROOTPATH}"

        case "$(echo ${DISPLAYMANAGER} | awk '{ print toupper($1) }')" in
                KDM|KDE|KDE2|KDE3)
                        EXE="$(which kdm)"
                        ;;
                ELOGIN*)
                        EXE="$(which elogind)"
                        ;;
                ENTRANCE*)
                        EXE="$(which entranced)"
                        ;;
                GDM|GNOME)
                        EXE=/usr/bin/gdm
                        ;;
                *)
                        EXE=/usr/X11R6/bin/xdm
                        ;;
        esac

        test ! -x "${EXE}" && EXE=/usr/X11R6/bin/xdm

        SERVICE="${EXE##*/}"
}

start() {
        setup_dm

        ebegin "Setting up ${SERVICE}"
        #save the prefered DM
        save_options "service" "${EXE}"
        #tell init to run /etc/X11/startDM.sh after current
        #runlevel is finished (should *not* be in the "boot"
        #                      runlevel).
        /sbin/telinit a &>/dev/null
        eend 0
}

stop() {
        local retval=0
        local curvt="$(fgconsole)"
        local myexe="$(get_options "service")"
        local myservice="${myexe##*/}"

        ebegin "Stopping ${myservice}"
        rm -f ${svcdir}/options/xdm/service

        if [ "$(ps -A | grep -e "${myservice}")" ]
        then
                start-stop-daemon --stop --quiet \
                        --exe ${myexe} &>/dev/null

                retval=$?
        else
                retval=1
        fi

        #switch back to original vt
        chvt "${curvt}" &>/dev/null
        eend ${retval} "Error stopping ${myservice}."

        return ${retval}
}


# vim:ts=4
all4you wrote:
Ik vind het nergens terug (Google) en anders moet ik altijd KDM manueel starten.

Jan
xdm re-emergen had waarschijnlijk ook gewerkt. Anders had je nog kunnen proberen deze uit het archief in /usr/portage/distfiles te halen.
Back to top
View user's profile Send private message
all4you
n00b
n00b


Joined: 07 Aug 2003
Posts: 9

PostPosted: Thu Aug 07, 2003 7:35 pm    Post subject: Reply with quote

tnx dude :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Dutch All times are GMT
Page 1 of 1

 
Jump to:  
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