1 # LightDM - light Display Manager
3 # The display manager service manages the X servers running on the
4 # system, providing login and auto-login services
6 # based on gdm upstart script
8 description "LightDM Display Manager"
9 author "Robert Ancell <robert.ancell@canonical.com>"
15 or runlevel PREVLEVEL=S)
17 stop on runlevel [016]
21 emits login-session-start
22 emits desktop-session-start
23 emits desktop-shutdown
26 if [ -n "$UPSTART_EVENTS" ]
28 # Check kernel command-line for inhibitors, unless we are being called
30 for ARG in $(cat /proc/cmdline); do
31 if [ "$ARG" = "text" ]; then
38 [ ! -f /etc/X11/default-display-manager -o "$(cat /etc/X11/default-display-manager 2>/dev/null)" = "/usr/bin/lightdm" -o "$(cat /etc/X11/default-display-manager 2>/dev/null)" = "/usr/sbin/lightdm" ] || { stop; exit 0; }
40 if [ "$RUNLEVEL" = S -o "$RUNLEVEL" = 1 ]
59 if [ "$UPSTART_STOP_EVENTS" = runlevel ]; then
60 initctl emit desktop-shutdown