(command.CommandList children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:PATH) op: assign_op.Equal rhs: {(/bin) (Id.Lit_Other ':') (/usr/bin) (Id.Lit_Other ':') (/sbin) (Id.Lit_Other ':') (/usr/sbin) } spids: [49] ) ] ) (command.AndOr ops: [Id.Op_DPipe] children: [ (C {(test)} {(-x)} {(/usr/sbin/anacron)}) (command.ControlFlow token: (Token id:Id.ControlFlow_Exit val:exit span_id:67) arg_word: {(0)} ) ] ) (command.AndOr ops: [Id.Op_DAmp] children: [(C {(test)} {(-r)} {(/etc/default/anacron)}) (C {(.)} {(/etc/default/anacron)})] ) (C {(.)} {(/lib/lsb/init-functions)}) (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.Simple words: [{(init_is_upstart)}] redirects: [ (redir.Redir op: (Token id:Id.Redir_Great val:'2>' span_id:106) fd: 2 arg_word: {(/dev/null)} ) ] ) terminator: (Token id:Id.Op_Semi val:';' span_id:108) ) ] action: [ (command.ControlFlow token: (Token id:Id.ControlFlow_Exit val:exit span_id:113) arg_word: {(1)} ) ] spids: [102 110] ) ] ) (C {(log_daemon_msg)} {(DQ ('Starting anac(h)ronistic cron'))} {(DQ (anacron))}) (command.If arms: [ (if_arm cond: [ (command.AndOr ops: [Id.Op_DAmp] children: [ (C {(test)} {(x) (DQ ($ Id.VSub_DollarName '$ANACRON_RUN_ON_BATTERY_POWER'))} {(Id.KW_Bang '!') (Id.Lit_Equals '=')} {(x) (DQ (yes))} ) (C {(test)} {(-x)} {(/usr/bin/on_ac_power)}) ] ) ] action: [ (command.Simple words: [{(/usr/bin/on_ac_power)}] redirects: [ (redir.Redir op: (Token id:Id.Redir_Great val:'>' span_id:163) fd: -1 arg_word: {(/dev/null)} ) ] ) (command.If arms: [ (if_arm cond: [(C {(test)} {($ Id.VSub_QMark '$?')} {(-eq)} {(1)})] action: [ (C {(log_progress_msg)} {(DQ ('deferred while on battery power'))}) (C {(log_end_msg)} {(0)}) (command.ControlFlow token: (Token id:Id.ControlFlow_Exit val:exit span_id:193) arg_word: {(0)} ) ] spids: [167 178] ) ] ) ] spids: [132 158] ) ] ) (C {(start-stop-daemon)} {(--start)} {(--exec)} {(/usr/sbin/anacron)} {(--)} {(-s)}) (C {(log_end_msg)} {(0)}) ] spids: [98 99 231 -1] ) (case_arm pat_list: [{(restart)} {(force-reload)} {(reload)}] action: [(C {(Id.Lit_Other ':')})] spids: [234 239 249 -1] ) (case_arm pat_list: [{(stop)}] action: [ (command.If arms: [ (if_arm cond: [ (command.AndOr ops: [Id.Op_DAmp] children: [ (command.Simple words: [{(init_is_upstart)}] redirects: [ (redir.Redir op: (Token id:Id.Redir_Great val:'2>' span_id:260) fd: 2 arg_word: {(/dev/null)} ) ] ) (command.Pipeline children: [ (command.Simple words: [{(status)} {(anacron)}] redirects: [ (redir.Redir op: (Token id:Id.Redir_Great val:'2>' span_id:269) fd: 2 arg_word: {(/dev/null)} ) ] ) (C {(grep)} {(-q)} {(start)}) ] negated: F ) ] ) ] action: [ (command.ControlFlow token: (Token id:Id.ControlFlow_Exit val:exit span_id:284) arg_word: {(0)} ) ] spids: [256 281] ) ] ) (C {(log_daemon_msg)} {(DQ ('Stopping anac(h)ronistic cron'))} {(DQ (anacron))}) (C {(start-stop-daemon)} {(--stop)} {(--exec)} {(/usr/sbin/anacron)} {(--oknodo)} {(--quiet)}) (C {(log_end_msg)} {(0)}) ] spids: [252 253 321 -1] ) (case_arm pat_list: [{(status)}] action: [ (command.ControlFlow token: (Token id:Id.ControlFlow_Exit val:exit span_id:328) arg_word: {(4)} ) ] spids: [324 325 333 -1] ) (case_arm pat_list: [{(Id.Lit_Star '*')}] action: [ (C {(echo)} {(DQ ('Usage: /etc/init.d/anacron {start|stop|restart|force-reload|reload}'))}) (command.ControlFlow token: (Token id:Id.ControlFlow_Exit val:exit span_id:347) arg_word: {(2)} ) ] spids: [336 337 352 -1] ) ] ) (command.ControlFlow token:(Token id:Id.ControlFlow_Exit val:exit span_id:357) arg_word:{(0)}) ] )