Projet

Général

Profil

abuledu.conf

Eric Seigne, 01/09/2012 14:33

Télécharger (1,22 ko)

 
1
# AbulEdu
2
#
3
# The display manager service manages the X servers running on the
4
# system, providing login and auto-login services
5
#
6
# based on gdm upstart script
7

    
8
description	"AbulEd Manager"
9
author		"Robert Ancell <robert.ancell@canonical.com>"
10

    
11
start on ((filesystem
12
           and runlevel [!06]
13
           and started dbus
14
           and (drm-device-added card0 PRIMARY_DEVICE_FOR_DISPLAY=1
15
                or stopped udev-fallback-graphics))
16
          or runlevel PREVLEVEL=S)
17

    
18
stop on runlevel [016]
19

    
20
emits login-session-start
21
emits desktop-session-start
22
emits desktop-shutdown
23

    
24
script
25
    if [ -n "$UPSTART_EVENTS" ]
26
    then
27
        # Check kernel command-line for inhibitors, unless we are being called
28
        # manually
29
        for ARG in $(cat /proc/cmdline); do
30
            if [ "$ARG" = "text" ]; then
31
		plymouth quit || : 
32
                stop
33
		exit 0
34
            fi
35
        done
36

    
37
	su tablette -c /usr/local/bin/start-abuledu.sh
38

    
39
	if [ "$RUNLEVEL" = S -o "$RUNLEVEL" = 1 ]
40
	then
41
	    # Single-user mode
42
	    plymouth quit || :
43
	    exit 0
44
	fi
45
    fi
46

    
47
    exec su tablette -c /usr/local/bin/start-abuledu.sh
48
end script
49

    
50
post-stop script
51
	if [ "$UPSTART_STOP_EVENTS" = runlevel ]; then
52
		initctl emit desktop-shutdown
53
	fi
54
end script
Redmine Appliance - Powered by TurnKey Linux