(CommandList children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LeftVar name:PATH) rhs: {(/sbin) (Lit_Other ":") (/usr/sbin) (Lit_Other ":") (/bin) (Lit_Other ":") (/usr/bin)} spids: [53] ) ] spids: [53] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LeftVar name:DESC) rhs:{(DQ ("enhanced syslogd"))} spids:[62])] spids: [62] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LeftVar name:NAME) rhs:{(rsyslog)} spids:[67])] spids: [67] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LeftVar name:RSYSLOGD) rhs:{(rsyslogd)} spids:[71])] spids: [71] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LeftVar name:DAEMON) rhs:{(/usr/sbin/rsyslogd)} spids:[74])] spids: [74] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LeftVar name:PIDFILE) rhs:{(/var/run/rsyslogd.pid)} spids:[77])] spids: [77] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LeftVar name:SCRIPTNAME) rhs: {(/etc/init.d/) ($ VSub_Name "$NAME")} spids: [81] ) ] spids: [81] ) (AndOr children: [ (C {(Lit_Other "[")} {(-x)} {(DQ ($ VSub_Name "$DAEMON"))} {(Lit_Other "]")}) (C {(exit)} {(0)}) ] op_id: Op_DPipe ) (AndOr children: [ (C {(Lit_Other "[")} {(-r)} {(/etc/default/) ($ VSub_Name "$NAME")} {(Lit_Other "]")}) (C {(.)} {(/etc/default/) ($ VSub_Name "$NAME")}) ] op_id: Op_DAmp ) (C {(.)} {(/lib/lsb/init-functions)}) (FuncDef name: do_start body: (BraceGroup children: [ (C {(start-stop-daemon)} {(--start)} {(--quiet)} {(--pidfile)} {($ VSub_Name "$PIDFILE")} {(--exec)} {($ VSub_Name "$DAEMON")} {(--)} {($ VSub_Name "$RSYSLOGD_OPTIONS")} ) ] spids: [138] ) spids: [134 137] ) (FuncDef name: do_stop body: (BraceGroup children: [ (C {(start-stop-daemon)} {(--stop)} {(--quiet)} {(--retry) (Lit_Other "=") (TERM/30/KILL/5)} {(--pidfile)} {($ VSub_Name "$PIDFILE")} {(--exec)} {($ VSub_Name "$DAEMON")} ) ] spids: [182] ) spids: [178 181] ) (FuncDef name: do_rotate body: (BraceGroup children: [ (C {(start-stop-daemon)} {(--stop)} {(--signal)} {(HUP)} {(--quiet)} {(--pidfile)} {($ VSub_Name "$PIDFILE")} {(--exec)} {($ VSub_Name "$DAEMON")} ) ] spids: [235] ) spids: [231 234] ) (FuncDef name: create_xconsole body: (BraceGroup children: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LeftVar name:XCONSOLE) rhs:{(/dev/xconsole)} spids:[266])] spids: [266] ) (If arms: [ (if_arm cond: (Sentence command: (C {(Lit_Other "[")} {(DQ (CommandSubPart command_list:(C {(uname)} {(-s)}) spids:[275279]))} {(KW_Bang "!") (Lit_Other "=")} {(DQ (Linux))} {(Lit_Other "]")} ) terminator: <Op_Semi ";"> ) action: (CommandList children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LeftVar name:XCONSOLE) rhs: {(/run/xconsole)} spids: [295] ) ] spids: [295] ) (C {(ln)} {(-sf)} {($ VSub_Name "$XCONSOLE")} {(/dev/xconsole)}) ] ) spids: [-1 292] ) ] spids: [-1 308] ) (If arms: [ (if_arm cond: (Sentence command: (C {(Lit_Other "[")} {(KW_Bang "!")} {(-e)} {($ VSub_Name "$XCONSOLE")} {(Lit_Other "]")} ) terminator: <Op_Semi ";"> ) action: (CommandList children: [ (C {(mknod)} {(-m)} {(640)} {($ VSub_Name "$XCONSOLE")} {(p)}) (C {(chown)} {(root) (Lit_Other ":") (adm)} {($ VSub_Name "$XCONSOLE")}) (AndOr children: [ (C {(Lit_Other "[")} {(-x)} {(/sbin/restorecon)} {(Lit_Other "]")}) (C {(/sbin/restorecon)} {($ VSub_Name "$XCONSOLE")}) ] op_id: Op_DAmp ) ] ) spids: [-1 324] ) ] spids: [-1 362] ) ] spids: [263] ) spids: [259 262] ) (FuncDef name: sendsigs_omit body: (BraceGroup children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LeftVar name:OMITDIR) rhs: {(/run/sendsigs.omit.d)} spids: [374] ) ] spids: [374] ) (C {(mkdir)} {(-p)} {($ VSub_Name "$OMITDIR")}) (C {(ln)} {(-sf)} {($ VSub_Name "$PIDFILE")} {($ VSub_Name "$OMITDIR") (/rsyslog)}) ] spids: [371] ) spids: [367 370] ) (Case to_match: {(DQ ($ VSub_Number "$1"))} arms: [ (case_arm pat_list: [{(start)}] action: (CommandList children: [ (If arms: [ (if_arm cond: (Sentence command:(C {(init_is_upstart)}) terminator:<Op_Semi ";">) action: (C {(exit)} {(1)}) spids: [-1 415] ) ] spids: [-1 423] ) (C {(log_daemon_msg)} {(DQ ("Starting ") ($ VSub_Name "$DESC"))} {(DQ ($ VSub_Name "$RSYSLOGD"))} ) (C {(create_xconsole)}) (C {(do_start)}) (Case to_match: {(DQ ($ VSub_QMark "$?"))} arms: [ (case_arm pat_list: [{(0)}] action: (CommandList children:[(C {(sendsigs_omit)})(C {(log_end_msg)} {(0)})]) spids: [453 454 463 -1] ) (case_arm pat_list: [{(1)}] action: (CommandList children: [ (C {(log_progress_msg)} {(DQ ("already started"))}) (C {(log_end_msg)} {(0)}) ] ) spids: [466 467 480 -1] ) (case_arm pat_list: [{(Lit_Other "*")}] action: (C {(log_end_msg)} {(1)}) spids: [483 484 490 -1] ) ] spids: [444 450 493] ) ] ) spids: [406 407 497 -1] ) (case_arm pat_list: [{(stop)}] action: (CommandList children: [ (If arms: [ (if_arm cond: (Sentence command:(C {(init_is_upstart)}) terminator:<Op_Semi ";">) action: (C {(exit)} {(0)}) spids: [-1 509] ) ] spids: [-1 517] ) (C {(log_daemon_msg)} {(DQ ("Stopping ") ($ VSub_Name "$DESC"))} {(DQ ($ VSub_Name "$RSYSLOGD"))} ) (C {(do_stop)}) (Case to_match: {(DQ ($ VSub_QMark "$?"))} arms: [ (case_arm pat_list: [{(0)}] action: (C {(log_end_msg)} {(0)}) spids: [544 545 551 -1] ) (case_arm pat_list: [{(1)}] action: (CommandList children: [ (C {(log_progress_msg)} {(DQ ("already stopped"))}) (C {(log_end_msg)} {(0)}) ] ) spids: [554 555 568 -1] ) (case_arm pat_list: [{(Lit_Other "*")}] action: (C {(log_end_msg)} {(1)}) spids: [571 572 578 -1] ) ] spids: [535 541 581] ) ] ) spids: [500 501 585 -1] ) (case_arm pat_list: [{(rotate)}] action: (CommandList children: [ (C {(log_daemon_msg)} {(DQ ("Closing open files"))} {(DQ ($ VSub_Name "$RSYSLOGD"))}) (C {(do_rotate)}) (C {(log_end_msg)} {($ VSub_QMark "$?")}) ] ) spids: [588 589 611 -1] ) (case_arm pat_list: [{(restart)} {(force-reload)}] action: (CommandList children: [ (If arms: [ (if_arm cond: (Sentence command:(C {(init_is_upstart)}) terminator:<Op_Semi ";">) action: (C {(exit)} {(1)}) spids: [-1 625] ) ] spids: [-1 633] ) (C {($ VSub_Number "$0")} {(stop)}) (C {($ VSub_Number "$0")} {(start)}) ] ) spids: [614 617 646 -1] ) (case_arm pat_list: [{(status)}] action: (AndOr children: [ (C {(status_of_proc)} {(-p)} {($ VSub_Name "$PIDFILE")} {($ VSub_Name "$DAEMON")} {($ VSub_Name "$RSYSLOGD")} ) (AndOr children: [(C {(exit)} {(0)}) (C {(exit)} {($ VSub_QMark "$?")})] op_id: Op_DPipe ) ] op_id: Op_DAmp ) spids: [649 650 676 -1] ) (case_arm pat_list: [{(Lit_Other "*")}] action: (CommandList children: [ (SimpleCommand words: [ {(echo)} { (DQ ("Usage: ") ($ VSub_Name "$SCRIPTNAME") (" {start|stop|rotate|restart|force-reload|status}") ) } ] redirects: [(Redirect op_id:Redir_GreatAnd arg_word:{(2)} fd:-1 spids:[691])] ) (C {(exit)} {(3)}) ] ) spids: [679 680 700 -1] ) ] spids: [397 403 702] ) (C {(Lit_Other ":")}) ] )