(command.CommandList children: [ (C {<set>} {<-e>}) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'PATH='> name:PATH) op: assign_op.Equal rhs: {<'/bin'> <Id.Lit_Colon ':'> <'/usr/bin'> <Id.Lit_Colon ':'> <'/sbin'> <Id.Lit_Colon ':'> <'/usr/sbin'> } spids: [44] ) ] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'DAEMON='> name:DAEMON) op: assign_op.Equal rhs: {<'/usr/sbin/uuidd'>} spids: [53] ) ] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'UUIDD_USER='> name:UUIDD_USER) op: assign_op.Equal rhs: {<uuidd>} spids: [56] ) ] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'UUIDD_GROUP='> name:UUIDD_GROUP) op: assign_op.Equal rhs: {<uuidd>} spids: [59] ) ] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'UUIDD_DIR='> name:UUIDD_DIR) op: assign_op.Equal rhs: {<'/run/uuidd'>} spids: [62] ) ] 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 UUIDD_DIR) <'/uuidd.pid'>} spids: [65] ) ] 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.Case to_match: {(DQ ($ Id.VSub_Number 1))} arms: [ (case_arm pat_list: [{<start>}] action: [ (C {<log_daemon_msg>} {(DQ <'Starting uuid generator'>)} {(DQ <uuidd>)}) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (command.Pipeline children: [(C {<test>} {<-d>} {($ Id.VSub_DollarName UUIDD_DIR)})] negated: T stderr_indices: [] ) terminator: <Id.Op_Semi _> ) ] ) action: [ (C {<mkdir>} {<-p>} {($ Id.VSub_DollarName UUIDD_DIR)}) (C {<chown>} {<-R>} {($ Id.VSub_DollarName UUIDD_USER) <Id.Lit_Colon ':'> ($ Id.VSub_DollarName UUIDD_GROUP) } {($ Id.VSub_DollarName UUIDD_DIR)} ) ] spids: [112 123] ) ] else_action: [] redirects: [] ) (C {<start_daemon>} {<-p>} {($ Id.VSub_DollarName PIDFILE)} {($ Id.VSub_DollarName DAEMON)}) (C {<log_end_msg>} {($ Id.VSub_QMark '?')}) ] spids: [97 98 161 -1] ) (case_arm pat_list: [{<stop>}] action: [ (C {<log_daemon_msg>} {(DQ <'Stopping uuid generator'>)} {(DQ <uuidd>)}) (C {<killproc>} {<-p>} {($ Id.VSub_DollarName PIDFILE)} {($ Id.VSub_DollarName DAEMON)}) (C {<log_end_msg>} {($ Id.VSub_QMark '?')}) ] spids: [164 165 193 -1] ) (case_arm pat_list: [{<status>}] action: [ (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (command.Simple words: [ {<pidofproc>} {<-p>} {($ Id.VSub_DollarName PIDFILE)} {($ Id.VSub_DollarName DAEMON)} ] redirects: [ (redir op: <Id.Redir_Great '>'> loc: (redir_loc.Fd fd:1) arg: {<'/dev/null'>} ) (redir op: <Id.Redir_GreatAnd '2>&'> loc: (redir_loc.Fd fd:2) arg: {<1>} ) ] more_env: [] do_fork: T ) terminator: <Id.Op_Semi _> ) ] ) action: [ (command.Sentence child: (C {<echo>} {(DQ ($ Id.VSub_DollarName DAEMON) <' is running'>)}) terminator: <Id.Op_Semi _> ) (command.Sentence child: (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<0>}) terminator: <Id.Op_Semi _> ) ] spids: [200 217] ) ] else_action: [ (command.Sentence child: (C {<echo>} {(DQ ($ Id.VSub_DollarName DAEMON) <' is NOT running'>)}) terminator: <Id.Op_Semi _> ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (C {<test>} {<-f>} {($ Id.VSub_DollarName PIDFILE)}) terminator: <Id.Op_Semi _> ) ] ) action: [ (command.Sentence child: (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<2>}) terminator: <Id.Op_Semi _> ) ] spids: [247 256] ) ] else_action: [] redirects: [] ) (command.Sentence child: (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<3>}) terminator: <Id.Op_Semi _> ) ] redirects: [] ) ] spids: [196 197 275 -1] ) (case_arm pat_list: [{<force-reload>} {<restart>}] action: [(C {($ Id.VSub_Number 0)} {<stop>}) (C {($ Id.VSub_Number 0)} {<start>})] spids: [278 281 294 -1] ) (case_arm pat_list: [{<Id.Lit_Star '*'>}] action: [ (C {<echo>} {(DQ <'Usage: /etc/init.d/uuidd {start|stop|restart|force-reload}'>)}) (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<1>}) ] spids: [297 298 313 -1] ) ] redirects: [] ) (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<0>}) ] )