(CommandList children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:DESC) op: Equal rhs: {(DQ ('automatic crash report generation'))} spids: [29] ) ] spids: [29] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:NAME) op:Equal rhs:{(apport)} spids:[34])] spids: [34] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:AGENT) op: Equal rhs: {(/usr/share/apport/apport)} spids: [37] ) ] spids: [37] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:SCRIPTNAME) op: Equal rhs: {(/etc/init.d/) ($ VSub_Name '$NAME')} spids: [40] ) ] spids: [40] ) (AndOr ops: [Op_DPipe] children: [ (C {(Lit_Other '[')} {(-x)} {(DQ ($ VSub_Name '$AGENT'))} {(Lit_Other ']')}) (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(0)}) ] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:enabled) op:Equal rhs:{(1)} spids:[68])] spids: [68] ) (AndOr ops: [Op_DAmp Op_DPipe] children: [ (C {(Lit_Other '[')} {(-e)} {(/etc/default/) ($ VSub_Name '$NAME')} {(Lit_Other ']')}) (C {(.)} {(/etc/default/) ($ VSub_Name '$NAME')}) (C {(true)}) ] ) (C {(.)} {(/lib/lsb/init-functions)}) (FuncDef name: do_start body: (BraceGroup children: [ (AndOr ops: [Op_DPipe] children: [ (C {(Lit_Other '[')} {(-e)} {(/var/crash)} {(Lit_Other ']')}) (C {(mkdir)} {(-p)} {(/var/crash)}) ] ) (C {(chmod)} {(1777)} {(/var/crash)}) (If arms: [ (if_arm cond: [ (Sentence child: (AndOr ops: [Op_DPipe] children: [ (C {(Lit_Other '[')} {(-e)} {(/var/crash/vmcore)} {(Lit_Other ']')}) (C {(Lit_Other '[')} {(-n)} { (DQ (CommandSubPart command_list: (CommandList children: [ (Pipeline children: [ (C {(ls)} {(/var/crash)}) (C {(egrep)} {(Lit_Other '^') (Lit_Other '[') (0-9) (Lit_Other ']') (Lit_LBrace '{') (12) (Lit_RBrace '}') (Lit_Other '$') } ) ] negated: F ) ] ) left_token: <Left_Backtick '`'> spids: [182 199] ) ) } {(Lit_Other ']')} ) ] ) terminator: <Op_Semi ';'> ) ] action: [ (AndOr ops: [Op_DPipe] children: [(C {(/usr/share/apport/kernel_crashdump)}) (C {(true)})] ) ] spids: [16777215 204] ) ] spids: [16777215 214] ) (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other '[')} {(-e)} {(/var/lib/pm-utils/status)} {(Lit_Other ']')}) terminator: <Op_Semi ';'> ) ] action: [ (AndOr ops: [Op_DPipe] children: [(C {(/usr/share/apport/apportcheckresume)}) (C {(true)})] ) (C {(rm)} {(-f)} {(/var/lib/pm-utils/status)}) (C {(rm)} {(-f)} {(/var/lib/pm-utils/resume-hang.log)}) ] spids: [16777215 233] ) ] spids: [16777215 257] ) (SimpleCommand words: [{(echo)} {(DQ ('|') ($ VSub_Name '$AGENT') (' %p %s %c %d %P'))}] redirects: [ (Redir op_id: Redir_Great fd: 16777215 arg_word: {(/proc/sys/kernel/core_pattern)} spids: [269] ) ] ) (SimpleCommand words: [{(echo)} {(2)}] redirects: [ (Redir op_id: Redir_Great fd: 16777215 arg_word: {(/proc/sys/fs/suid_dumpable)} spids: [278] ) ] ) ] spids: [116] ) spids: [112 115] ) (FuncDef name: do_stop body: (BraceGroup children: [ (SimpleCommand words: [{(echo)} {(0)}] redirects: [ (Redir op_id: Redir_Great fd: 16777215 arg_word: {(/proc/sys/fs/suid_dumpable)} spids: [326] ) ] ) (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other '[')} {(-e)} {(/var/lib/pm-utils/status)} {(Lit_Other ']')}) terminator: <Op_Semi ';'> ) ] action: [ (SimpleCommand words: [{(ps)} {(-wwef)}] redirects: [ (Redir op_id: Redir_Great fd: 16777215 arg_word: {(/var/lib/pm-utils/resume-hang.log)} spids: [358] ) ] ) ] spids: [16777215 351] ) ] spids: [16777215 362] ) (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other '[')} { (DQ (CommandSubPart command_list: (CommandList children: [ (SimpleCommand words: [ {(dd)} {(Lit_VarLike 'if=') (/proc/sys/kernel/core_pattern)} {(Lit_VarLike 'count=') (1)} {(Lit_VarLike 'bs=') (1)} ] redirects: [ (Redir op_id: Redir_Great fd: 2 arg_word: {(/dev/null)} spids: [383] ) ] ) ] ) left_token: <Left_Backtick '`'> spids: [371 385] ) ) } {(KW_Bang '!') (Lit_Other '=')} {(DQ ('|'))} {(Lit_Other ']')} ) terminator: <Op_Semi ';'> ) ] action: [(ControlFlow token:<ControlFlow_Return return> arg_word:{(1)})] spids: [16777215 398] ) ] else_action: [ (SimpleCommand words: [{(echo)} {(DQ (core))}] redirects: [ (Redir op_id: Redir_Great fd: 16777215 arg_word: {(/proc/sys/kernel/core_pattern)} spids: [415] ) ] ) ] spids: [406 420] ) ] spids: [298] ) spids: [294 297] ) (Case to_match: {(DQ ($ VSub_Number '$1'))} arms: [ (case_arm pat_list: [{(start)}] action: [ (AndOr ops: [Op_DAmp] children: [ (C {(grep)} {(-zqs)} {(SQ <'^container='>)} {(/proc/1/environ)}) (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(0)}) ] ) (AndOr ops: [Op_DPipe Op_DPipe] children: [ (C {(Lit_Other '[')} {(DQ ($ VSub_Name '$enabled'))} {(Lit_Other '=')} {(DQ (1))} {(Lit_Other ']')} ) (C {(Lit_Other '[')} {(DQ ($ VSub_Name '$force_start'))} {(Lit_Other '=')} {(DQ (1))} {(Lit_Other ']')} ) (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(0)}) ] ) (AndOr ops: [Op_DAmp] children: [ (C {(Lit_Other '[')} {(DQ ($ VSub_Name '$VERBOSE'))} {(KW_Bang '!') (Lit_Other '=')} {(no)} {(Lit_Other ']')} ) (C {(log_daemon_msg)} {(DQ ('Starting ') ($ VSub_Name '$DESC') (':'))} {(DQ ($ VSub_Name '$NAME'))} ) ] ) (C {(do_start)}) (Case to_match: {(DQ ($ VSub_QMark '$?'))} arms: [ (case_arm pat_list: [{(0)} {(1)}] action: [ (AndOr ops: [Op_DAmp] children: [ (C {(Lit_Other '[')} {(DQ ($ VSub_Name '$VERBOSE'))} {(KW_Bang '!') (Lit_Other '=')} {(no)} {(Lit_Other ']')} ) (C {(log_end_msg)} {(0)}) ] ) ] spids: [537 540 561 16777215] ) (case_arm pat_list: [{(2)}] action: [ (AndOr ops: [Op_DAmp] children: [ (C {(Lit_Other '[')} {(DQ ($ VSub_Name '$VERBOSE'))} {(KW_Bang '!') (Lit_Other '=')} {(no)} {(Lit_Other ']')} ) (C {(log_end_msg)} {(1)}) ] ) ] spids: [564 565 586 16777215] ) ] spids: [528 534 589] ) ] spids: [434 435 592 16777215] ) (case_arm pat_list: [{(stop)}] action: [ (AndOr ops: [Op_DAmp] children: [ (C {(grep)} {(-zqs)} {(SQ <'^container='>)} {(/proc/1/environ)}) (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(0)}) ] ) (AndOr ops: [Op_DAmp] children: [ (C {(Lit_Other '[')} {(DQ ($ VSub_Name '$VERBOSE'))} {(KW_Bang '!') (Lit_Other '=')} {(no)} {(Lit_Other ']')} ) (C {(log_daemon_msg)} {(DQ ('Stopping ') ($ VSub_Name '$DESC') (':'))} {(DQ ($ VSub_Name '$NAME'))} ) ] ) (C {(do_stop)}) (Case to_match: {(DQ ($ VSub_QMark '$?'))} arms: [ (case_arm pat_list: [{(0)} {(1)}] action: [ (AndOr ops: [Op_DAmp] children: [ (C {(Lit_Other '[')} {(DQ ($ VSub_Name '$VERBOSE'))} {(KW_Bang '!') (Lit_Other '=')} {(no)} {(Lit_Other ']')} ) (C {(log_end_msg)} {(0)}) ] ) ] spids: [661 664 685 16777215] ) (case_arm pat_list: [{(2)}] action: [ (AndOr ops: [Op_DAmp] children: [ (C {(Lit_Other '[')} {(DQ ($ VSub_Name '$VERBOSE'))} {(KW_Bang '!') (Lit_Other '=')} {(no)} {(Lit_Other ']')} ) (C {(log_end_msg)} {(1)}) ] ) ] spids: [688 689 710 16777215] ) ] spids: [652 658 713] ) ] spids: [595 596 716 16777215] ) (case_arm pat_list: [{(restart)} {(force-reload)}] action: [ (AndOr ops: [Op_DPipe] children: [(C {($ VSub_Number '$0')} {(stop)}) (C {(true)})] ) (C {($ VSub_Number '$0')} {(start)}) ] spids: [719 722 739 16777215] ) (case_arm pat_list: [{(Lit_Other '*')}] action: [ (SimpleCommand words: [ {(echo)} {(DQ ('Usage: ') ($ VSub_Name '$SCRIPTNAME') (' {start|stop|restart|force-reload}'))} ] redirects: [(Redir op_id:Redir_GreatAnd fd:16777215 arg_word:{(2)} spids:[754])] ) (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(3)}) ] spids: [742 743 763 16777215] ) ] spids: [425 431 765] ) (C {(Lit_Other ':')}) ] )