source: proiecte/PPPP/gdm/debian/gdm.upstart @ 134

Last change on this file since 134 was 134, checked in by (none), 14 years ago

gdm sources with the modifications for webcam

File size: 1.1 KB
Line 
1# gdm - GNOME Display Manager
2#
3# The display manager service manages the X servers running on the
4# system, providing login and auto-login services
5
6description     "GNOME Display Manager"
7author          "William Jon McCann <mccann@jhu.edu>"
8
9start on (filesystem
10          and started hal
11          and tty-device-added KERNEL=tty7
12          and (graphics-device-added or stopped udevtrigger))
13stop on runlevel [016]
14
15emits starting-dm
16
17env XORGCONFIG=/etc/X11/xorg.conf
18
19script
20    [ ! -f /etc/X11/default-display-manager -o "$(cat /etc/X11/default-display-manager 2>/dev/null)" = "/usr/sbin/gdm" ] || { stop; exit 0; }
21
22    # Check kernel command-line for inhibitors
23    for ARG in $(cat /proc/cmdline)
24    do
25        case "${ARG}" in
26            text|-s|s|S|single)
27                exit 0
28                ;;
29        esac
30    done
31
32    if [ -r /etc/default/locale ]; then
33        . /etc/default/locale
34        export LANG LANGUAGE
35    elif [ -r /etc/environment ]; then
36        . /etc/environment
37        export LANG LANGUAGE
38    fi
39    export XORGCONFIG
40
41    initctl emit starting-dm DM=gdm
42
43    exec gdm-binary $CONFIG_FILE
44end script
Note: See TracBrowser for help on using the repository browser.