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]
22 emits login-session-start
23 emits desktop-session-start
24 emits desktop-shutdown
27 if [ -n "$UPSTART_EVENTS" ]
29 # Check kernel command-line for inhibitors, unless we are being called
31 for ARG in $(cat /proc/cmdline); do
32 if [ "$ARG" = "text" ]; then
39 [ ! -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; }
41 if [ "$RUNLEVEL" = S -o "$RUNLEVEL" = 1 ]
60 if [ "$UPSTART_STOP_EVENTS" = runlevel ]; then
61 initctl emit desktop-shutdown