(command.CommandList children: [ (command.Simple blame_tok:<set> more_env:[] words:[{<set>} {<-e>}] redirects:[] do_fork:T) (command.ShAssignment left: <Id.Lit_VarLike 'HEED_DEFAULT_DISPLAY_MANAGER='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'HEED_DEFAULT_DISPLAY_MANAGER='> lhs: (sh_lhs_expr.Name left: <Id.Lit_VarLike 'HEED_DEFAULT_DISPLAY_MANAGER='> name: HEED_DEFAULT_DISPLAY_MANAGER ) op: assign_op.Equal rhs: (rhs_word__Empty) ) ] redirects: [] ) (command.AndOr children: [ (command.Simple blame_tok: <Id.Lit_LBracket '['> more_env: [] words: [ {<Id.Lit_LBracket '['>} {<-z>} {(DQ ($ Id.VSub_DollarName HEED_DEFAULT_DISPLAY_MANAGER))} {<Id.Lit_RBracket ']'>} ] redirects: [] do_fork: T ) (command.ShAssignment left: <Id.Lit_VarLike 'HEED_DEFAULT_DISPLAY_MANAGER='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'HEED_DEFAULT_DISPLAY_MANAGER='> lhs: (sh_lhs_expr.Name left: <Id.Lit_VarLike 'HEED_DEFAULT_DISPLAY_MANAGER='> name: HEED_DEFAULT_DISPLAY_MANAGER ) op: assign_op.Equal rhs: {<true>} ) ] redirects: [] ) ] ops: [<Id.Op_DAmp _>] ) (command.ShAssignment left: <Id.Lit_VarLike 'DEFAULT_DISPLAY_MANAGER_FILE='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'DEFAULT_DISPLAY_MANAGER_FILE='> lhs: (sh_lhs_expr.Name left: <Id.Lit_VarLike 'DEFAULT_DISPLAY_MANAGER_FILE='> name: DEFAULT_DISPLAY_MANAGER_FILE ) op: assign_op.Equal rhs: {<'/etc/X11/default-display-manager'>} ) ] redirects: [] ) (command.ShAssignment left: <Id.Lit_VarLike 'PATH='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'PATH='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'PATH='> name:PATH) op: assign_op.Equal rhs: {<'/bin'> <Id.Lit_Colon ':'> <'/usr/bin'> <Id.Lit_Colon ':'> <'/sbin'> <Id.Lit_Colon ':'> <'/usr/sbin'> } ) ] redirects: [] ) (command.ShAssignment left: <Id.Lit_VarLike 'DAEMON='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'DAEMON='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'DAEMON='> name:DAEMON) op: assign_op.Equal rhs: {<'/usr/sbin/lightdm'>} ) ] redirects: [] ) (command.ShAssignment left: <Id.Lit_VarLike 'PIDFILE='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'PIDFILE='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'PIDFILE='> name:PIDFILE) op: assign_op.Equal rhs: {<'/var/run/lightdm.pid'>} ) ] redirects: [] ) (command.If if_kw: <Id.KW_If if> arms: [ (IfArm keyword: <Id.KW_If if> cond: (condition.Shell commands: [ (command.Sentence child: (command.Simple blame_tok: <Id.Lit_LBracket '['> more_env: [] words: [ {<Id.Lit_LBracket '['>} {<-r>} {<'/etc/default/locale'>} {<Id.Lit_RBracket ']'>} ] redirects: [] do_fork: T ) terminator: <Id.Op_Semi _> ) ] ) then_kw: <Id.KW_Then then> action: [ (command.Simple blame_tok: <.> more_env: [] words: [{<.>} {<'/etc/default/locale'>}] redirects: [] do_fork: T ) (command.Simple blame_tok: <export> more_env: [] words: [{<export>} {<LANG>} {<LANGUAGE>}] redirects: [] do_fork: T ) ] spids: [145 156] ) ] else_action: [] fi_kw: <Id.KW_Fi fi> redirects: [] ) (command.AndOr children: [ (command.Simple blame_tok: <test> more_env: [] words: [{<test>} {<-x>} {($ Id.VSub_DollarName DAEMON)}] redirects: [] do_fork: T ) (command.ControlFlow keyword:<Id.ControlFlow_Exit exit> arg_word:{<0>}) ] ops: [<Id.Op_DPipe _>] ) (command.Simple blame_tok: <.> more_env: [] words: [{<.>} {<'/lib/lsb/init-functions'>}] redirects: [] do_fork: T ) (command.ShAssignment left: <Id.Lit_VarLike 'SSD_START_ARGS='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'SSD_START_ARGS='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'SSD_START_ARGS='> name:SSD_START_ARGS) op: assign_op.Equal rhs: { (DQ <'--pidfile '> ($ Id.VSub_DollarName PIDFILE) <' --name '> (CommandSub left_token: <Id.Left_DollarParen '$('> child: (command.Simple blame_tok: <basename> more_env: [] words: [{<basename>} {($ Id.VSub_DollarName DAEMON)}] redirects: [] do_fork: T ) right: <Id.Eof_RParen _> ) <' --startas '> ($ Id.VSub_DollarName DAEMON) <' -- -d'> ) } ) ] redirects: [] ) (command.ShAssignment left: <Id.Lit_VarLike 'SSD_STOP_ARGS='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'SSD_STOP_ARGS='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'SSD_STOP_ARGS='> name:SSD_STOP_ARGS) op: assign_op.Equal rhs: { (DQ <'--pidfile '> ($ Id.VSub_DollarName PIDFILE) <' --name '> (CommandSub left_token: <Id.Left_DollarParen '$('> child: (command.Simple blame_tok: <basename> more_env: [] words: [{<basename>} {($ Id.VSub_DollarName DAEMON)}] redirects: [] do_fork: T ) right: <Id.Eof_RParen _> ) <' --retry TERM/5/TERM/5'> ) } ) ] redirects: [] ) (command.Case case_kw: <Id.KW_Case case> to_match: (case_arg.Word w:{(DQ ($ Id.VSub_Number 1))}) arms_start: <Id.KW_In in> arms: [ (CaseArm left: <start> pattern: (pat.Words words:[{<start>}]) middle: <Id.Right_CasePat _> action: [ (command.If if_kw: <Id.KW_If if> arms: [ (IfArm keyword: <Id.KW_If if> cond: (condition.Shell commands: [ (command.Sentence child: (command.AndOr children: [ (command.Simple blame_tok: <Id.Lit_LBracket '['> more_env: [] words: [ {<Id.Lit_LBracket '['>} {(DQ ($ Id.VSub_DollarName HEED_DEFAULT_DISPLAY_MANAGER))} {<Id.Lit_Equals '='>} {(DQ <true>)} {<Id.Lit_RBracket ']'>} ] redirects: [] do_fork: T ) (command.Simple blame_tok: <Id.Lit_LBracket '['> more_env: [] words: [ {<Id.Lit_LBracket '['>} {<-e>} {($ Id.VSub_DollarName DEFAULT_DISPLAY_MANAGER_FILE)} {<Id.Lit_RBracket ']'>} ] redirects: [] do_fork: T ) (command.Simple blame_tok: <Id.Lit_LBracket '['> more_env: [] words: [ {<Id.Lit_LBracket '['>} { (DQ (CommandSub left_token: <Id.Left_DollarParen '$('> child: (command.Simple blame_tok: <cat> more_env: [] words: [ {<cat>} {($ Id.VSub_DollarName DEFAULT_DISPLAY_MANAGER_FILE)} ] redirects: [] do_fork: T ) right: <Id.Eof_RParen _> ) ) } {<Id.KW_Bang '!'> <Id.Lit_Equals '='>} {(DQ <'/usr/bin/lightdm'>)} {<-a>} { (DQ (CommandSub left_token: <Id.Left_DollarParen '$('> child: (command.Simple blame_tok: <cat> more_env: [] words: [ {<cat>} {($ Id.VSub_DollarName DEFAULT_DISPLAY_MANAGER_FILE)} ] redirects: [] do_fork: T ) right: <Id.Eof_RParen _> ) ) } {<Id.KW_Bang '!'> <Id.Lit_Equals '='>} {(DQ <'/usr/sbin/lightdm'>)} {<Id.Lit_RBracket ']'>} ] redirects: [] do_fork: T ) ] ops: [<Id.Op_DAmp _> <Id.Op_DAmp _>] ) terminator: <Id.Op_Semi _> ) ] ) then_kw: <Id.KW_Then then> action: [ (command.Simple blame_tok: <echo> more_env: [] words: [ {<echo>} {(DQ <'Not starting X display manager (lightdm); it is not the default'>)} {(DQ <'display manager.'>)} ] redirects: [] do_fork: T ) ] spids: [233 300] ) ] else_kw: <Id.KW_Else else> else_action: [ (command.Simple blame_tok: <log_daemon_msg> more_env: [] words: [{<log_daemon_msg>} {(DQ <'Starting X display manager'>)} {(DQ <lightdm>)}] redirects: [] do_fork: T ) (command.AndOr children: [ (command.Simple blame_tok: <start-stop-daemon> more_env: [] words: [ {<start-stop-daemon>} {<--start>} {<--quiet>} {($ Id.VSub_DollarName SSD_START_ARGS)} ] redirects: [] do_fork: T ) (command.Simple blame_tok: <log_progress_msg> more_env: [] words: [{<log_progress_msg>} {(DQ <'already running'>)}] redirects: [] do_fork: T ) ] ops: [<Id.Op_DPipe _>] ) (command.Simple blame_tok: <log_end_msg> more_env: [] words: [{<log_end_msg>} {<0>}] redirects: [] do_fork: T ) ] fi_kw: <Id.KW_Fi fi> redirects: [] ) ] right: <Id.Op_DSemi _> ) (CaseArm left: <restart> pattern: (pat.Words words:[{<restart>}]) middle: <Id.Right_CasePat _> action: [ (command.AndOr children: [ (command.Simple blame_tok: <Id.Lit_LBracket '['> more_env: [] words: [ {<Id.Lit_LBracket '['>} {<-f>} {($ Id.VSub_DollarName PIDFILE)} {<Id.Lit_RBracket ']'>} ] redirects: [] do_fork: T ) (command.Simple blame_tok: <'/etc/init.d/lightdm'> more_env: [] words: [{<'/etc/init.d/lightdm'>} {<stop>}] redirects: [] do_fork: T ) ] ops: [<Id.Op_DAmp _>] ) (command.AndOr children: [ (command.Simple blame_tok: <Id.Lit_LBracket '['> more_env: [] words: [ {<Id.Lit_LBracket '['>} {<-f>} {($ Id.VSub_DollarName PIDFILE)} {<Id.Lit_RBracket ']'>} ] redirects: [] do_fork: T ) (command.ControlFlow keyword:<Id.ControlFlow_Exit exit> arg_word:{<1>}) ] ops: [<Id.Op_DAmp _>] ) (command.Simple blame_tok: <'/etc/init.d/lightdm'> more_env: [] words: [{<'/etc/init.d/lightdm'>} {<start>}] redirects: [] do_fork: T ) ] right: <Id.Op_DSemi _> ) (CaseArm left: <stop> pattern: (pat.Words words:[{<stop>}]) middle: <Id.Right_CasePat _> action: [ (command.Simple blame_tok: <log_daemon_msg> more_env: [] words: [{<log_daemon_msg>} {(DQ <'Stopping X display manager'>)} {(DQ <lightdm>)}] redirects: [] do_fork: T ) (command.If if_kw: <Id.KW_If if> arms: [ (IfArm keyword: <Id.KW_If if> cond: (condition.Shell commands: [ (command.Sentence child: (command.Pipeline negated: <Id.KW_Bang '!'> children: [ (command.Simple blame_tok: <Id.Lit_LBracket '['> more_env: [] words: [ {<Id.Lit_LBracket '['>} {<-f>} {($ Id.VSub_DollarName PIDFILE)} {<Id.Lit_RBracket ']'>} ] redirects: [] do_fork: T ) ] ops: [] ) terminator: <Id.Op_Semi _> ) ] ) then_kw: <Id.KW_Then then> action: [ (command.Simple blame_tok: <log_progress_msg> more_env: [] words: [ {<log_progress_msg>} {(DQ <'not running ('> ($ Id.VSub_DollarName PIDFILE) <' not found)'>)} ] redirects: [] do_fork: T ) ] spids: [419 432] ) ] else_kw: <Id.KW_Else else> else_action: [ (command.Simple blame_tok: <start-stop-daemon> more_env: [] words: [ {<start-stop-daemon>} {<--stop>} {<--quiet>} {($ Id.VSub_DollarName SSD_STOP_ARGS)} ] redirects: [] do_fork: T ) (command.ShAssignment left: <Id.Lit_VarLike 'SSD_RES='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'SSD_RES='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'SSD_RES='> name:SSD_RES) op: assign_op.Equal rhs: {($ Id.VSub_QMark '?')} ) ] redirects: [] ) (command.If if_kw: <Id.KW_If if> arms: [ (IfArm keyword: <Id.KW_If if> cond: (condition.Shell commands: [ (command.Sentence child: (command.Simple blame_tok: <Id.Lit_LBracket '['> more_env: [] words: [ {<Id.Lit_LBracket '['>} {($ Id.VSub_DollarName SSD_RES)} {<-eq>} {<1>} {<Id.Lit_RBracket ']'>} ] redirects: [] do_fork: T ) terminator: <Id.Op_Semi _> ) ] ) then_kw: <Id.KW_Then then> action: [ (command.Simple blame_tok: <log_progress_msg> more_env: [] words: [{<log_progress_msg>} {(DQ <'not running'>)}] redirects: [] do_fork: T ) ] spids: [460 473] ) ] else_action: [] fi_kw: <Id.KW_Fi fi> redirects: [] ) (command.If if_kw: <Id.KW_If if> arms: [ (IfArm keyword: <Id.KW_If if> cond: (condition.Shell commands: [ (command.Sentence child: (command.Simple blame_tok: <Id.Lit_LBracket '['> more_env: [] words: [ {<Id.Lit_LBracket '['>} {($ Id.VSub_DollarName SSD_RES)} {<-eq>} {<2>} {<Id.Lit_RBracket ']'>} ] redirects: [] do_fork: T ) terminator: <Id.Op_Semi _> ) ] ) then_kw: <Id.KW_Then then> action: [ (command.Simple blame_tok: <log_progress_msg> more_env: [] words: [{<log_progress_msg>} {(DQ <'not responding to TERM signals'>)}] redirects: [] do_fork: T ) ] spids: [486 499] ) ] else_kw: <Id.KW_Else else> else_action: [ (command.If if_kw: <Id.KW_If if> arms: [ (IfArm keyword: <Id.KW_If if> cond: (condition.Shell commands: [ (command.Sentence child: (command.Simple blame_tok: <Id.Lit_LBracket '['> more_env: [] words: [ {<Id.Lit_LBracket '['>} {<-f>} {($ Id.VSub_DollarName PIDFILE)} {<Id.Lit_RBracket ']'>} ] redirects: [] do_fork: T ) terminator: <Id.Op_Semi _> ) ] ) then_kw: <Id.KW_Then then> action: [ (command.Simple blame_tok: <log_progress_msg> more_env: [] words: [ {<log_progress_msg>} {(DQ <'(removing stale '> ($ Id.VSub_DollarName PIDFILE) <')'>)} ] redirects: [] do_fork: T ) (command.Simple blame_tok: <rm> more_env: [] words: [{<rm>} {($ Id.VSub_DollarName PIDFILE)}] redirects: [] do_fork: T ) ] spids: [512 523] ) ] else_action: [] fi_kw: <Id.KW_Fi fi> redirects: [] ) ] fi_kw: <Id.KW_Fi fi> redirects: [] ) ] fi_kw: <Id.KW_Fi fi> redirects: [] ) (command.Simple blame_tok: <log_end_msg> more_env: [] words: [{<log_end_msg>} {<0>}] redirects: [] do_fork: T ) ] right: <Id.Op_DSemi _> ) (CaseArm left: <force-reload> pattern: (pat.Words words:[{<force-reload>}]) middle: <Id.Right_CasePat _> action: [ (command.Simple blame_tok: <'/etc/init.d/lightdm'> more_env: [] words: [{<'/etc/init.d/lightdm'>} {<restart>}] redirects: [] do_fork: T ) ] right: <Id.Op_DSemi _> ) (CaseArm left: <Id.Lit_Star '*'> pattern: (pat.Words words:[{<Id.Lit_Star '*'>}]) middle: <Id.Right_CasePat _> action: [ (command.Simple blame_tok: <echo> more_env: [] words: [{<echo>} {(DQ <'Usage: /etc/init.d/lightdm {start|stop|restart|force-reload}'>)}] redirects: [] do_fork: T ) (command.ControlFlow keyword:<Id.ControlFlow_Exit exit> arg_word:{<1>}) ] right: <Id.Op_DSemi _> ) ] arms_end: <Id.KW_Esac esac> redirects: [] ) (command.ControlFlow keyword:<Id.ControlFlow_Exit exit> arg_word:{<0>}) ] )