(command.CommandList children: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:PATH spids:[53]) op: Equal rhs: {(/sbin) (Lit_Other ':') (/usr/sbin) (Lit_Other ':') (/bin) (Lit_Other ':') (/usr/bin)} spids: [53] ) ] spids: [53] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:DESC spids:[62]) op: Equal rhs: {(DQ ('enhanced syslogd'))} spids: [62] ) ] spids: [62] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:NAME spids:[67]) op: Equal rhs: {(rsyslog)} spids: [67] ) ] spids: [67] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:RSYSLOGD spids:[71]) op: Equal rhs: {(rsyslogd)} spids: [71] ) ] spids: [71] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:DAEMON spids:[74]) op: Equal rhs: {(/usr/sbin/rsyslogd)} spids: [74] ) ] spids: [74] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:PIDFILE spids:[77]) op: Equal rhs: {(/var/run/rsyslogd.pid)} spids: [77] ) ] spids: [77] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:SCRIPTNAME spids:[81]) op: Equal rhs: {(/etc/init.d/) ($ VSub_DollarName '$NAME')} spids: [81] ) ] spids: [81] ) (command.AndOr ops: [Op_DPipe] children: [ (C {(Lit_Other '[')} {(-x)} {(DQ ($ VSub_DollarName '$DAEMON'))} {(Lit_Other ']')}) (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(0)}) ] ) (command.AndOr ops: [Op_DAmp] children: [ (C {(Lit_Other '[')} {(-r)} {(/etc/default/) ($ VSub_DollarName '$NAME')} {(Lit_Other ']')}) (C {(.)} {(/etc/default/) ($ VSub_DollarName '$NAME')}) ] ) (C {(.)} {(/lib/lsb/init-functions)}) (command.FuncDef name: do_start body: (command.BraceGroup children: [ (C {(start-stop-daemon)} {(--start)} {(--quiet)} {(--pidfile)} {($ VSub_DollarName '$PIDFILE')} {(--exec)} {($ VSub_DollarName '$DAEMON')} {(--)} {($ VSub_DollarName '$RSYSLOGD_OPTIONS')} ) ] spids: [138] ) spids: [134 137] ) (command.FuncDef name: do_stop body: (command.BraceGroup children: [ (C {(start-stop-daemon)} {(--stop)} {(--quiet)} {(--retry) (Lit_Other '=') (TERM/30/KILL/5)} {(--pidfile)} {($ VSub_DollarName '$PIDFILE')} {(--exec)} {($ VSub_DollarName '$DAEMON')} ) ] spids: [182] ) spids: [178 181] ) (command.FuncDef name: do_rotate body: (command.BraceGroup children: [ (C {(start-stop-daemon)} {(--stop)} {(--signal)} {(HUP)} {(--quiet)} {(--pidfile)} {($ VSub_DollarName '$PIDFILE')} {(--exec)} {($ VSub_DollarName '$DAEMON')} ) ] spids: [235] ) spids: [231 234] ) (command.FuncDef name: create_xconsole body: (command.BraceGroup children: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:XCONSOLE spids:[266]) op: Equal rhs: {(/dev/xconsole)} spids: [266] ) ] spids: [266] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(Lit_Other '[')} { (DQ (word_part.CommandSubPart command_list: (command.CommandList children:[(C {(uname)} {(-s)})]) left_token: <Left_CommandSub '$('> spids: [275 279] ) ) } {(KW_Bang '!') (Lit_Other '=')} {(DQ (Linux))} {(Lit_Other ']')} ) terminator: <Op_Semi ';'> ) ] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:XCONSOLE spids:[295]) op: Equal rhs: {(/run/xconsole)} spids: [295] ) ] spids: [295] ) (C {(ln)} {(-sf)} {($ VSub_DollarName '$XCONSOLE')} {(/dev/xconsole)}) ] spids: [16777215 292] ) ] spids: [16777215 308] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(Lit_Other '[')} {(KW_Bang '!')} {(-e)} {($ VSub_DollarName '$XCONSOLE')} {(Lit_Other ']')} ) terminator: <Op_Semi ';'> ) ] action: [ (C {(mknod)} {(-m)} {(640)} {($ VSub_DollarName '$XCONSOLE')} {(p)}) (C {(chown)} {(root) (Lit_Other ':') (adm)} {($ VSub_DollarName '$XCONSOLE')}) (command.AndOr ops: [Op_DAmp] children: [ (C {(Lit_Other '[')} {(-x)} {(/sbin/restorecon)} {(Lit_Other ']')}) (C {(/sbin/restorecon)} {($ VSub_DollarName '$XCONSOLE')}) ] ) ] spids: [16777215 324] ) ] spids: [16777215 362] ) ] spids: [263] ) spids: [259 262] ) (command.FuncDef name: sendsigs_omit body: (command.BraceGroup children: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:OMITDIR spids:[374]) op: Equal rhs: {(/run/sendsigs.omit.d)} spids: [374] ) ] spids: [374] ) (C {(mkdir)} {(-p)} {($ VSub_DollarName '$OMITDIR')}) (C {(ln)} {(-sf)} {($ VSub_DollarName '$PIDFILE')} {($ VSub_DollarName '$OMITDIR') (/rsyslog)} ) ] spids: [371] ) spids: [367 370] ) (command.Case to_match: {(DQ ($ VSub_Number '$1'))} arms: [ (case_arm pat_list: [{(start)}] action: [ (C {(log_daemon_msg)} {(DQ ('Starting ') ($ VSub_DollarName '$DESC'))} {(DQ ($ VSub_DollarName '$RSYSLOGD'))} ) (C {(create_xconsole)}) (C {(do_start)}) (command.Case to_match: {(DQ ($ VSub_QMark '$?'))} arms: [ (case_arm pat_list: [{(0)}] action: [(C {(sendsigs_omit)}) (C {(log_end_msg)} {(0)})] spids: [437 438 447 16777215] ) (case_arm pat_list: [{(1)}] action: [(C {(log_progress_msg)} {(DQ ('already started'))}) (C {(log_end_msg)} {(0)})] spids: [450 451 464 16777215] ) (case_arm pat_list: [{(Lit_Other '*')}] action: [(C {(log_end_msg)} {(1)})] spids: [467 468 474 16777215] ) ] spids: [428 434 477] ) ] spids: [406 407 481 16777215] ) (case_arm pat_list: [{(stop)}] action: [ (C {(log_daemon_msg)} {(DQ ('Stopping ') ($ VSub_DollarName '$DESC'))} {(DQ ($ VSub_DollarName '$RSYSLOGD'))} ) (C {(do_stop)}) (command.Case to_match: {(DQ ($ VSub_QMark '$?'))} arms: [ (case_arm pat_list: [{(0)}] action: [(C {(log_end_msg)} {(0)})] spids: [512 513 519 16777215] ) (case_arm pat_list: [{(1)}] action: [(C {(log_progress_msg)} {(DQ ('already stopped'))}) (C {(log_end_msg)} {(0)})] spids: [522 523 536 16777215] ) (case_arm pat_list: [{(Lit_Other '*')}] action: [(C {(log_end_msg)} {(1)})] spids: [539 540 546 16777215] ) ] spids: [503 509 549] ) ] spids: [484 485 553 16777215] ) (case_arm pat_list: [{(rotate)}] action: [ (C {(log_daemon_msg)} {(DQ ('Closing open files'))} {(DQ ($ VSub_DollarName '$RSYSLOGD'))}) (C {(do_rotate)}) (C {(log_end_msg)} {($ VSub_QMark '$?')}) ] spids: [556 557 579 16777215] ) (case_arm pat_list: [{(restart)} {(force-reload)}] action: [(C {($ VSub_Number '$0')} {(stop)}) (C {($ VSub_Number '$0')} {(start)})] spids: [582 585 598 16777215] ) (case_arm pat_list: [{(status)}] action: [ (command.AndOr ops: [Op_DAmp Op_DPipe] children: [ (C {(status_of_proc)} {(-p)} {($ VSub_DollarName '$PIDFILE')} {($ VSub_DollarName '$DAEMON')} {($ VSub_DollarName '$RSYSLOGD')} ) (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(0)}) (command.ControlFlow token: <ControlFlow_Exit exit> arg_word: {($ VSub_QMark '$?')} ) ] ) ] spids: [601 602 628 16777215] ) (case_arm pat_list: [{(Lit_Other '*')}] action: [ (command.SimpleCommand words: [ {(echo)} { (DQ ('Usage: ') ($ VSub_DollarName '$SCRIPTNAME') (' {start|stop|rotate|restart|force-reload|status}') ) } ] redirects: [(redir.Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})] ) (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(3)}) ] spids: [631 632 652 16777215] ) ] spids: [397 403 654] ) (C {(Lit_Other ':')}) ] )