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]
19
emits login-session-start
20
emits desktop-session-start
21
emits desktop-shutdown
24
if [ -n "$UPSTART_EVENTS" ]
26
# Check kernel command-line for inhibitors, unless we are being called
28
for ARG in $(cat /proc/cmdline); do
29
if [ "$ARG" = "text" ]; then
36
[ ! -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; }
38
if [ "$RUNLEVEL" = S -o "$RUNLEVEL" = 1 ]
55
if [ "$UPSTART_STOP_EVENTS" = runlevel ]; then
56
initctl emit desktop-shutdown