(command.CommandList children: [ (C {<Id.KW_Set set>} {<-e>}) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:HEED_DEFAULT_DISPLAY_MANAGER) op: assign_op.Equal rhs: (word.Empty) spids: [95] ) ] ) (command.AndOr ops: [Id.Op_DAmp] children: [ (C {<Id.Lit_LBracket '['>} {<-z>} {(DQ ($ Id.VSub_DollarName '$HEED_DEFAULT_DISPLAY_MANAGER'))} {<Id.Lit_RBracket ']'>} ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:HEED_DEFAULT_DISPLAY_MANAGER) op: assign_op.Equal rhs: {<true>} spids: [121] ) ] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:DEFAULT_DISPLAY_MANAGER_FILE) op: assign_op.Equal rhs: {<'/etc/X11/default-display-manager'>} spids: [125] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:PATH) op: assign_op.Equal rhs: {<'/bin'> <Id.Lit_Colon ':'> <'/usr/bin'> <Id.Lit_Colon ':'> <'/sbin'> <Id.Lit_Colon ':'> <'/usr/sbin'> } spids: [129] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:DAEMON) op: assign_op.Equal rhs: {<'/usr/sbin/lightdm'>} spids: [138] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:PIDFILE) op: assign_op.Equal rhs: {<'/var/run/lightdm.pid'>} spids: [141] ) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {<Id.Lit_LBracket '['>} {<-r>} {<'/etc/default/locale'>} {<Id.Lit_RBracket ']'>}) terminator: <Id.Op_Semi _> ) ] action: [(C {<.>} {<'/etc/default/locale'>}) (C {<export>} {<LANG>} {<LANGUAGE>})] spids: [145 156] ) ] ) (command.AndOr ops: [Id.Op_DPipe] children: [ (C {<test>} {<-x>} {($ Id.VSub_DollarName '$DAEMON')}) (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<0>}) ] ) (C {<.>} {<'/lib/lsb/init-functions'>}) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:SSD_START_ARGS) op: assign_op.Equal rhs: { (DQ <'--pidfile '> ($ Id.VSub_DollarName '$PIDFILE') <' --name '> (command_sub left_token: <Id.Left_DollarParen '$('> child: (C {<basename>} {($ Id.VSub_DollarName '$DAEMON')}) ) <' --startas '> ($ Id.VSub_DollarName '$DAEMON') <' -- -d'> ) } spids: [191] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:SSD_STOP_ARGS) op: assign_op.Equal rhs: { (DQ <'--pidfile '> ($ Id.VSub_DollarName '$PIDFILE') <' --name '> (command_sub left_token: <Id.Left_DollarParen '$('> child: (C {<basename>} {($ Id.VSub_DollarName '$DAEMON')}) ) <' --retry TERM/5/TERM/5'> ) } spids: [206] ) ] ) (command.Case to_match: {(DQ ($ Id.VSub_Number '$1'))} arms: [ (case_arm pat_list: [{<start>}] action: [ (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.AndOr ops: [Id.Op_DAmp Id.Op_DAmp] children: [ (C {<Id.Lit_LBracket '['>} {(DQ ($ Id.VSub_DollarName '$HEED_DEFAULT_DISPLAY_MANAGER'))} {<Id.Lit_Equals '='>} {(DQ <true>)} {<Id.Lit_RBracket ']'>} ) (C {<Id.Lit_LBracket '['>} {<-e>} {($ Id.VSub_DollarName '$DEFAULT_DISPLAY_MANAGER_FILE')} {<Id.Lit_RBracket ']'>} ) (C {<Id.Lit_LBracket '['>} { (DQ (command_sub left_token: <Id.Left_DollarParen '$('> child: (C {<cat>} {($ Id.VSub_DollarName '$DEFAULT_DISPLAY_MANAGER_FILE')} ) ) ) } {<Id.KW_Bang '!'> <Id.Lit_Equals '='>} {(DQ <'/usr/bin/lightdm'>)} {<-a>} { (DQ (command_sub left_token: <Id.Left_DollarParen '$('> child: (C {<cat>} {($ Id.VSub_DollarName '$DEFAULT_DISPLAY_MANAGER_FILE')} ) ) ) } {<Id.KW_Bang '!'> <Id.Lit_Equals '='>} {(DQ <'/usr/sbin/lightdm'>)} {<Id.Lit_RBracket ']'>} ) ] ) terminator: <Id.Op_Semi _> ) ] action: [ (C {<echo>} {(DQ <'Not starting X display manager (lightdm); it is not the default'>)} {(DQ <'display manager.'>)} ) ] spids: [233 300] ) ] else_action: [ (C {<log_daemon_msg>} {(DQ <'Starting X display manager'>)} {(DQ <lightdm>)}) (command.AndOr ops: [Id.Op_DPipe] children: [ (C {<start-stop-daemon>} {<--start>} {<--quiet>} {($ Id.VSub_DollarName '$SSD_START_ARGS')} ) (C {<log_progress_msg>} {(DQ <'already running'>)}) ] ) (C {<log_end_msg>} {<0>}) ] ) ] spids: [229 230 357 -1] ) (case_arm pat_list: [{<restart>}] action: [ (command.AndOr ops: [Id.Op_DAmp] children: [ (C {<Id.Lit_LBracket '['>} {<-f>} {($ Id.VSub_DollarName '$PIDFILE')} {<Id.Lit_RBracket ']'>} ) (C {<'/etc/init.d/lightdm'>} {<stop>}) ] ) (command.AndOr ops: [Id.Op_DAmp] children: [ (C {<Id.Lit_LBracket '['>} {<-f>} {($ Id.VSub_DollarName '$PIDFILE')} {<Id.Lit_RBracket ']'>} ) (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<1>}) ] ) (C {<'/etc/init.d/lightdm'>} {<start>}) ] spids: [361 362 400 -1] ) (case_arm pat_list: [{<stop>}] action: [ (C {<log_daemon_msg>} {(DQ <'Stopping X display manager'>)} {(DQ <lightdm>)}) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.Pipeline children: [ (C {<Id.Lit_LBracket '['>} {<-f>} {($ Id.VSub_DollarName '$PIDFILE')} {<Id.Lit_RBracket ']'>} ) ] negated: T ) terminator: <Id.Op_Semi _> ) ] action: [ (C {<log_progress_msg>} {(DQ <'not running ('> ($ Id.VSub_DollarName '$PIDFILE') <' not found)'>)} ) ] spids: [419 432] ) ] else_action: [ (C {<start-stop-daemon>} {<--stop>} {<--quiet>} {($ Id.VSub_DollarName '$SSD_STOP_ARGS')}) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:SSD_RES) op: assign_op.Equal rhs: {($ Id.VSub_QMark '$?')} spids: [456] ) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {<Id.Lit_LBracket '['>} {($ Id.VSub_DollarName '$SSD_RES')} {<-eq>} {<1>} {<Id.Lit_RBracket ']'>} ) terminator: <Id.Op_Semi _> ) ] action: [(C {<log_progress_msg>} {(DQ <'not running'>)})] spids: [460 473] ) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {<Id.Lit_LBracket '['>} {($ Id.VSub_DollarName '$SSD_RES')} {<-eq>} {<2>} {<Id.Lit_RBracket ']'>} ) terminator: <Id.Op_Semi _> ) ] action: [(C {<log_progress_msg>} {(DQ <'not responding to TERM signals'>)})] spids: [486 499] ) ] else_action: [ (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {<Id.Lit_LBracket '['>} {<-f>} {($ Id.VSub_DollarName '$PIDFILE')} {<Id.Lit_RBracket ']'>} ) terminator: <Id.Op_Semi _> ) ] action: [ (C {<log_progress_msg>} {(DQ <'(removing stale '> ($ Id.VSub_DollarName '$PIDFILE') <')'>)} ) (C {<rm>} {($ Id.VSub_DollarName '$PIDFILE')}) ] spids: [512 523] ) ] ) ] ) ] ) (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: [{<Id.Lit_Star '*'>}] action: [ (C {<echo>} {(DQ <'Usage: /etc/init.d/lightdm {start|stop|restart|force-reload}'>)}) (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<1>}) ] spids: [570 571 586 -1] ) ] ) (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<0>}) ] )