[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: problema con gdm



> >e' eseguibile?
> >
> penso di si

beh, verificalo:

# ls -l /etc/init.d/gdm
-rwxr-xr-x  1 root root 2077 Dec 28  2004 /etc/init.d/gdm

> >Se provi a lanciarlo a mano parte e fa il suo dovere?
> >
> dando ./gdm non si muove nulla

Mh, strano. Cmq questo e' un init-script, quindi lo dovresti chiamare come:

/etc/init.d/gdm start

Per ogni evenienza, ti includo lo script qui sotto, almeno vediamo se
sono simili (se non uguali).

#! /bin/sh
#
# Originally based on:
# Version:      @(#)skeleton  1.8  03-Mar-1998  miquels@cistron.nl
#
# Modified for gdm, Steve Haslam <steve@arise.dmeon.co.uk> 14mar99
# modified to remove --exec, as it does not work on upgrades. 18jan2000
# modified to use --name, to detect stale PID files 18mar2000
# sleep until gdm dies, then restart it 16jul2000
# get along with other display managers (Branden Robinson, Ryan
Murray) 05sep2001

set -e

# To start gdm even if it is not the default display manager, change
# HEED_DEFAULT_DISPLAY_MANAGER to "false."
HEED_DEFAULT_DISPLAY_MANAGER=true
DEFAULT_DISPLAY_MANAGER_FILE=/etc/X11/default-display-manager
PATH=/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/bin/gdm
PIDFILE=/var/run/gdm.pid
UPGRADEFILE=/var/run/gdm.upgrade

if [ -e $UPGRADEFILE -a "$1" != "restart" -a "$1" != "force-reload" ]; then
        SSD_ARG="--startas $DAEMON"
        rm -f $UPGRADEFILE
else
        SSD_ARG="--exec $DAEMON"
fi

test -x $DAEMON || exit 0

if [ -r /etc/default/gdm ]; then
  . /etc/default/gdm
  if [ -z "$LANG" ]; then
    :
  else
    export LANG
  fi
fi

case "$1" in
  start)
        if [ -e "$DEFAULT_DISPLAY_MANAGER_FILE" -a
"$HEED_DEFAULT_DISPLAY_MANAGER" = "true" -a "$(cat
$DEFAULT_DISPLAY_MANAGER_FILE)" != "$DAEMON" ]; then
                echo "Not starting GNOME Display Manager (gdm); it is
not the default display manager."
        else
                echo -n "Starting GNOME Display Manager: gdm"
                start-stop-daemon --start --quiet --pidfile $PIDFILE
--name gdm $SSD_ARG || echo -n " already running"
                echo "."
        fi
  ;;
  stop)
        echo -n "Stopping GNOME Display Manager: gdm"
        start-stop-daemon --stop  --quiet --pidfile $PIDFILE --name
gdm $SSD_ARG --retry 30 || echo -n " not running"
        echo "."
  ;;
  reload)
        echo "Reloading GNOME Display Manager configuration.  Changes
will take effect"
        echo "when all current X sessions have ended."
        start-stop-daemon --stop --signal USR1 --quiet --pidfile \
                $PIDFILE --name gdm $SSD_ARG
  ;;
  restart|force-reload)
        $0 stop
        $0 start
  ;;
  *)
        echo "Usage: /etc/init.d/gdm {start|stop|restart|reload|force-reload}"
        exit 1
  ;;
esac

exit 0


Attenzione che alcune linee potrebbero essere state wrappate sia da
GMail che dal cut&paste da terminale.

Ciao

--
Sandro Tosi (aka Morpheus, matrixhasu)
My (little) site: http://matrixhasu.altervista.org/



Reply to: