(CommandList children: [ (C {(set)} {(-e)}) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LeftVar name:HEED_DEFAULT_DISPLAY_MANAGER) rhs:{(SQ )} spids:[95])] spids: [95] ) (AndOr children: [ (C {(Lit_Other "[")} {(-z)} {(DQ ($ VSub_Name "$HEED_DEFAULT_DISPLAY_MANAGER"))} {(Lit_Other "]")} ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LeftVar name:HEED_DEFAULT_DISPLAY_MANAGER) rhs: {(true)} spids: [121] ) ] spids: [121] ) ] op_id: Op_DAmp ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LeftVar name:DEFAULT_DISPLAY_MANAGER_FILE) rhs: {(/etc/X11/default-display-manager)} spids: [125] ) ] spids: [125] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LeftVar name:PATH) rhs: {(/bin) (Lit_Other ":") (/usr/bin) (Lit_Other ":") (/sbin) (Lit_Other ":") (/usr/sbin)} spids: [129] ) ] spids: [129] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LeftVar name:DAEMON) rhs:{(/usr/sbin/lightdm)} spids:[138])] spids: [138] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LeftVar name:PIDFILE) rhs:{(/var/run/lightdm.pid)} spids:[141])] spids: [141] ) (If arms: [ (if_arm cond: (Sentence command: (C {(Lit_Other "[")} {(-r)} {(/etc/default/locale)} {(Lit_Other "]")}) terminator: <Op_Semi ";"> ) action: (CommandList children: [ (C {(.)} {(/etc/default/locale)}) (Assignment keyword: Assign_Export pairs: [ (assign_pair lhs:(LeftVar name:LANG) spids:[166]) (assign_pair lhs:(LeftVar name:LANGUAGE) spids:[168]) ] spids: [164] ) ] ) spids: [-1 156] ) ] spids: [-1 170] ) (AndOr children: [(C {(test)} {(-x)} {($ VSub_Name "$DAEMON")}) (C {(exit)} {(0)})] op_id: Op_DPipe ) (C {(.)} {(/lib/lsb/init-functions)}) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LeftVar name:SSD_START_ARGS) rhs: { (DQ ("--pidfile ") ($ VSub_Name "$PIDFILE") (" --name ") (CommandSubPart command_list: (C {(basename)} {($ VSub_Name "$DAEMON")}) spids: [196 200] ) (" --startas ") ($ VSub_Name "$DAEMON") (" -- -d") ) } spids: [191] ) ] spids: [191] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LeftVar name:SSD_STOP_ARGS) rhs: { (DQ ("--pidfile ") ($ VSub_Name "$PIDFILE") (" --name ") (CommandSubPart command_list: (C {(basename)} {($ VSub_Name "$DAEMON")}) spids: [211 215] ) (" --retry TERM/5/TERM/5") ) } spids: [206] ) ] spids: [206] ) (Case to_match: {(DQ ($ VSub_Number "$1"))} arms: [ (case_arm pat_list: [{(start)}] action: (If arms: [ (if_arm cond: (Sentence command: (AndOr children: [ (C {(Lit_Other "[")} {(DQ ($ VSub_Name "$HEED_DEFAULT_DISPLAY_MANAGER"))} {(Lit_Other "=")} {(DQ (true))} {(Lit_Other "]")} ) (AndOr children: [ (C {(Lit_Other "[")} {(-e)} {($ VSub_Name "$DEFAULT_DISPLAY_MANAGER_FILE")} {(Lit_Other "]")} ) (C {(Lit_Other "[")} { (DQ (CommandSubPart command_list: (C {(cat)} {($ VSub_Name "$DEFAULT_DISPLAY_MANAGER_FILE")}) spids: [266 270] ) ) } {(KW_Bang "!") (Lit_Other "=")} {(DQ (/usr/bin/lightdm))} {(-a)} { (DQ (CommandSubPart command_list: (C {(cat)} {($ VSub_Name "$DEFAULT_DISPLAY_MANAGER_FILE")}) spids: [283 287] ) ) } {(KW_Bang "!") (Lit_Other "=")} {(DQ (/usr/sbin/lightdm))} {(Lit_Other "]")} ) ] op_id: Op_DAmp ) ] op_id: Op_DAmp ) terminator: <Op_Semi ";"> ) action: (C {(echo)} {(DQ ("Not starting X display manager (lightdm); it is not the default"))} {(DQ ("display manager."))} ) spids: [-1 300] ) ] else_action: (CommandList children: [ (C {(log_daemon_msg)} {(DQ ("Starting X display manager"))} {(DQ (lightdm))}) (AndOr children: [ (C {(start-stop-daemon)} {(--start)} {(--quiet)} {($ VSub_Name "$SSD_START_ARGS")} ) (C {(log_progress_msg)} {(DQ ("already running"))}) ] op_id: Op_DPipe ) (C {(log_end_msg)} {(0)}) ] ) spids: [316 354] ) spids: [229 230 357 -1] ) (case_arm pat_list: [{(restart)}] action: (CommandList children: [ (AndOr children: [ (C {(Lit_Other "[")} {(-f)} {($ VSub_Name "$PIDFILE")} {(Lit_Other "]")}) (C {(/etc/init.d/lightdm)} {(stop)}) ] op_id: Op_DAmp ) (AndOr children: [ (C {(Lit_Other "[")} {(-f)} {($ VSub_Name "$PIDFILE")} {(Lit_Other "]")}) (C {(exit)} {(1)}) ] op_id: Op_DAmp ) (C {(/etc/init.d/lightdm)} {(start)}) ] ) spids: [361 362 400 -1] ) (case_arm pat_list: [{(stop)}] action: (CommandList children: [ (C {(log_daemon_msg)} {(DQ ("Stopping X display manager"))} {(DQ (lightdm))}) (If arms: [ (if_arm cond: (Sentence command: (Pipeline children: [ (C {(Lit_Other "[")} {(-f)} {($ VSub_Name "$PIDFILE")} {(Lit_Other "]")}) ] negated: True ) terminator: <Op_Semi ";"> ) action: (C {(log_progress_msg)} {(DQ ("not running (") ($ VSub_Name "$PIDFILE") (" not found)"))} ) spids: [-1 432] ) ] else_action: (CommandList children: [ (C {(start-stop-daemon)} {(--stop)} {(--quiet)} {($ VSub_Name "$SSD_STOP_ARGS")}) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LeftVar name:SSD_RES) rhs: {($ VSub_QMark "$?")} spids: [456] ) ] spids: [456] ) (If arms: [ (if_arm cond: (Sentence command: (C {(Lit_Other "[")} {($ VSub_Name "$SSD_RES")} {(-eq)} {(1)} {(Lit_Other "]")} ) terminator: <Op_Semi ";"> ) action: (C {(log_progress_msg)} {(DQ ("not running"))}) spids: [-1 473] ) ] spids: [-1 483] ) (If arms: [ (if_arm cond: (Sentence command: (C {(Lit_Other "[")} {($ VSub_Name "$SSD_RES")} {(-eq)} {(2)} {(Lit_Other "]")} ) terminator: <Op_Semi ";"> ) action: (C {(log_progress_msg)} {(DQ ("not responding to TERM signals"))}) spids: [-1 499] ) ] else_action: (If arms: [ (if_arm cond: (Sentence command: (C {(Lit_Other "[")} {(-f)} {($ VSub_Name "$PIDFILE")} {(Lit_Other "]")} ) terminator: <Op_Semi ";"> ) action: (CommandList children: [ (C {(log_progress_msg)} {(DQ ("(removing stale ") ($ VSub_Name "$PIDFILE") (")"))} ) (C {(rm)} {($ VSub_Name "$PIDFILE")}) ] ) spids: [-1 523] ) ] spids: [-1 540] ) spids: [509 543] ) ] ) spids: [444 546] ) (C {(log_end_msg)} {(0)}) ] ) spids: [404 405 554 -1] ) (case_arm pat_list: [{(force-reload)}] action: (C {(/etc/init.d/lightdm)} {(restart)}) spids: [557 558 566 -1] ) (case_arm pat_list: [{(Lit_Other "*")}] action: (CommandList children: [ (C {(echo)} {(DQ ("Usage: /etc/init.d/lightdm {start|stop|restart|force-reload}"))}) (C {(exit)} {(1)}) ] ) spids: [570 571 586 -1] ) ] spids: [220 226 588] ) (C {(exit)} {(0)}) ] )