(command.CommandList children: [ (C {<set>} {<-e>}) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'DAEMON='> name:DAEMON) op: assign_op.Equal rhs: {<'/usr/bin/dbus-daemon'>} spids: [51] ) ] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'UUIDGEN='> name:UUIDGEN) op: assign_op.Equal rhs: {<'/usr/bin/dbus-uuidgen'>} spids: [54] ) ] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'UUIDGEN_OPTS='> name:UUIDGEN_OPTS) op: assign_op.Equal rhs: {<--ensure>} spids: [57] ) ] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'NAME='> name:NAME) op: assign_op.Equal rhs: {<dbus>} spids: [60] ) ] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'DAEMONUSER='> name:DAEMONUSER) op: assign_op.Equal rhs: {<messagebus>} spids: [63] ) ] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'PIDDIR='> name:PIDDIR) op: assign_op.Equal rhs: {<'/var/run/dbus'>} spids: [66] ) ] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'PIDFILE='> name:PIDFILE) op: assign_op.Equal rhs: {($ Id.VSub_DollarName PIDDIR) <'/pid'>} spids: [69] ) ] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'DESC='> name:DESC) op: assign_op.Equal rhs: {(DQ <'system message bus'>)} spids: [73] ) ] redirects: [] ) (command.AndOr ops: [Id.Op_DPipe] children: [ (C {<test>} {<-x>} {($ Id.VSub_DollarName DAEMON)}) (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<0>}) ] ) (C {<.>} {<'/lib/lsb/init-functions'>}) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'PARAMS='> name:PARAMS) op: assign_op.Equal rhs: {(DQ )} spids: [100] ) ] redirects: [] ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (C {<Id.Lit_LBracket '['>} {<-e>} {<'/etc/default/dbus'>} {<Id.Lit_RBracket ']'>}) terminator: <Id.Op_Semi _> ) ] ) action: [(C {<.>} {<'/etc/default/dbus'>})] spids: [104 115] ) ] else_action: [] redirects: [] ) (command.ShFunction name: create_machineid body: (BraceGroup left: <Id.Lit_LBrace '{'> children: [ (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (C {<Id.Lit_LBracket '['>} {<-x>} {($ Id.VSub_DollarName UUIDGEN)} {<Id.Lit_RBracket ']'>} ) terminator: <Id.Op_Semi _> ) ] ) action: [(C {($ Id.VSub_DollarName UUIDGEN)} {($ Id.VSub_DollarName UUIDGEN_OPTS)})] spids: [136 147] ) ] else_action: [] redirects: [] ) ] redirects: [] right: <Id.Lit_RBrace '}'> ) ) (command.ShFunction name: start_it_up body: (BraceGroup left: <Id.Lit_LBrace '{'> children: [ (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (C {<Id.Lit_LBracket '['>} {<Id.KW_Bang '!'>} {<-d>} {($ Id.VSub_DollarName PIDDIR)} {<Id.Lit_RBracket ']'>} ) terminator: <Id.Op_Semi _> ) ] ) action: [ (C {<mkdir>} {<-p>} {($ Id.VSub_DollarName PIDDIR)}) (C {<chown>} {($ Id.VSub_DollarName DAEMONUSER)} {($ Id.VSub_DollarName PIDDIR)}) (C {<chgrp>} {($ Id.VSub_DollarName DAEMONUSER)} {($ Id.VSub_DollarName PIDDIR)}) ] spids: [167 180] ) ] else_action: [] redirects: [] ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (command.Pipeline children: [(C {<mountpoint>} {<-q>} {<'/proc/'>})] negated: T stderr_indices: [] ) terminator: <Id.Op_Semi _> ) ] ) action: [ (C {<log_failure_msg>} {(DQ <'Can\'t start '> ($ Id.VSub_DollarName DESC) <' - /proc is not mounted'>)} ) (command.ControlFlow token:<Id.ControlFlow_Return return>) ] spids: [208 220] ) ] else_action: [] redirects: [] ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (C {<Id.Lit_LBracket '['>} {<-e>} {($ Id.VSub_DollarName PIDFILE)} {<Id.Lit_RBracket ']'>} ) terminator: <Id.Op_Semi _> ) ] ) action: [ (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (command.Simple words: [{($ Id.VSub_Number 0)} {<status>}] redirects: [ (redir op: <Id.Redir_Great '>'> loc: (redir_loc.Fd fd:1) arg: {<'/dev/null'>} ) ] more_env: [] do_fork: T ) terminator: <Id.Op_Semi _> ) ] ) action: [ (C {<log_success_msg>} {(DQ ($ Id.VSub_DollarName DESC) <' already started; not starting.'>)} ) (command.ControlFlow token: <Id.ControlFlow_Return return> ) ] spids: [253 265] ) ] else_action: [ (C {<log_success_msg>} {(DQ <'Removing stale PID file '> ($ Id.VSub_DollarName PIDFILE) <.>)} ) (C {<rm>} {<-f>} {($ Id.VSub_DollarName PIDFILE)}) ] redirects: [] ) ] spids: [239 250] ) ] else_action: [] redirects: [] ) (C {<create_machineid>}) (C {<log_daemon_msg>} {(DQ <'Starting '> ($ Id.VSub_DollarName DESC))} {(DQ ($ Id.VSub_DollarName NAME))} ) (C {<start-stop-daemon>} {<--start>} {<--quiet>} {<--pidfile>} {($ Id.VSub_DollarName PIDFILE)} {<--exec>} {($ Id.VSub_DollarName DAEMON)} {<-->} {<--system>} {($ Id.VSub_DollarName PARAMS)} ) (C {<log_end_msg>} {($ Id.VSub_QMark '?')}) ] redirects: [] right: <Id.Lit_RBrace '}'> ) ) (command.ShFunction name: shut_it_down body: (BraceGroup left: <Id.Lit_LBrace '{'> children: [ (C {<log_daemon_msg>} {(DQ <'Stopping '> ($ Id.VSub_DollarName DESC))} {(DQ ($ Id.VSub_DollarName NAME))} ) (C {<start-stop-daemon>} {<--stop>} {<--retry>} {<5>} {<--quiet>} {<--oknodo>} {<--pidfile>} {($ Id.VSub_DollarName PIDFILE)} {<--user>} {($ Id.VSub_DollarName DAEMONUSER)} ) (C {<log_end_msg>} {($ Id.VSub_QMark '?')}) (C {<rm>} {<-f>} {($ Id.VSub_DollarName PIDFILE)}) ] redirects: [] right: <Id.Lit_RBrace '}'> ) ) (command.ShFunction name: reload_it body: (BraceGroup left: <Id.Lit_LBrace '{'> children: [ (C {<create_machineid>}) (C {<log_action_begin_msg>} {(DQ <'Reloading '> ($ Id.VSub_DollarName DESC) <' config'>)}) (command.Simple words: [ {<dbus-send>} {<--print-reply>} {<--system>} {<--type> <Id.Lit_Equals '='> <method_call>} {<--dest> <Id.Lit_Equals '='> <org.freedesktop.DBus>} {<'/'>} {<org.freedesktop.DBus.ReloadConfig>} ] redirects: [(redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<'/dev/null'>})] more_env: [] do_fork: T ) (C {<log_action_end_msg>} {($ Id.VSub_QMark '?')}) ] redirects: [] right: <Id.Lit_RBrace '}'> ) ) (command.Case to_match: {(DQ ($ Id.VSub_Number 1))} arms: [ (case_arm pat_list:[{<start>}] action:[(C {<start_it_up>})] spids:[489 490 496 -1]) (case_arm pat_list:[{<stop>}] action:[(C {<shut_it_down>})] spids:[499 500 506 -1]) (case_arm pat_list: [{<reload>} {<force-reload>}] action: [(C {<reload_it>})] spids: [509 512 518 -1] ) (case_arm pat_list: [{<restart>}] action: [(C {<shut_it_down>}) (C {<start_it_up>})] spids: [521 522 531 -1] ) (case_arm pat_list: [{<status>}] action: [ (command.AndOr ops: [Id.Op_DAmp Id.Op_DPipe] children: [ (C {<status_of_proc>} {<-p>} {($ Id.VSub_DollarName PIDFILE)} {($ Id.VSub_DollarName DAEMON)} {($ Id.VSub_DollarName NAME)} ) (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<0>}) (command.ControlFlow token: <Id.ControlFlow_Exit exit> arg_word: {($ Id.VSub_QMark '?')} ) ] ) ] spids: [534 535 561 -1] ) (case_arm pat_list: [{<Id.Lit_Star '*'>}] action: [ (command.Simple words: [ {<echo>} { (DQ <'Usage: /etc/init.d/'> ($ Id.VSub_DollarName NAME) <' {start|stop|reload|restart|force-reload|status}'> ) } ] redirects: [(redir op:<Id.Redir_GreatAnd '>&'> loc:(redir_loc.Fd fd:1) arg:{<2>})] more_env: [] do_fork: T ) (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<2>}) ] spids: [564 565 585 -1] ) ] redirects: [] ) ] )