(command.CommandList children: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:PATH spids:[40]) op: Equal rhs: {(/sbin) (Lit_Other ':') (/bin) (Lit_Other ':') (/usr/sbin) (Lit_Other ':') (/usr/bin)} spids: [40] ) ] spids: [40] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:DESC spids:[49]) op: Equal rhs: {(DQ ('Avahi mDNS/DNS-SD Daemon'))} spids: [49] ) ] spids: [49] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:NAME spids:[54]) op: Equal rhs: {(DQ (avahi-daemon))} spids: [54] ) ] spids: [54] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:DAEMON spids:[59]) op: Equal rhs: {(DQ (/usr/sbin/) ($ VSub_DollarName '$NAME'))} spids: [59] ) ] spids: [59] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:SCRIPTNAME spids:[65]) op: Equal rhs: {(/etc/init.d/) ($ VSub_DollarName '$NAME')} spids: [65] ) ] spids: [65] ) (command.AndOr ops: [Op_DPipe] children: [ (C {(test)} {(-x)} {($ VSub_DollarName '$DAEMON')}) (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(0)}) ] ) (C {(.)} {(/lib/lsb/init-functions)}) (command.AndOr ops: [Op_DAmp] children: [ (C {(test)} {(-f)} {(/etc/default/avahi-daemon)}) (C {(.)} {(/etc/default/avahi-daemon)}) ] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:DISABLE_TAG spids:[107]) op: Equal rhs: {(DQ (/var/run/avahi-daemon/disabled-for-unicast-local))} spids: [107] ) ] spids: [107] ) (command.FuncDef name: d_start body: (command.BraceGroup children: [ (command.AndOr ops: [Op_DAmp] children: [ (C {($ VSub_DollarName '$DAEMON')} {(-c)}) (command.ControlFlow token:<ControlFlow_Return return> arg_word:{(0)}) ] ) (command.Sentence child: (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(Lit_Other '[')} {(-e)} {($ VSub_DollarName '$DISABLE_TAG')} {(-a)} {(DQ ($ VSub_DollarName '$AVAHI_DAEMON_DETECT_LOCAL'))} {(KW_Bang '!') (Lit_Other '=')} {(DQ (0))} {(Lit_Other ']')} ) terminator: <Op_Semi ';'> ) ] action: [ (C {(log_warning_msg)} {(DQ ('avahi-daemon disabled because there is a unicast .local domain'))} ) (command.Sentence child: (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(0)}) terminator: <Op_Semi ';'> ) ] spids: [16777215 165] ) ] spids: [16777215 185] ) terminator: <Op_Semi ';'> ) (C {($ VSub_DollarName '$DAEMON')} {(-D)}) ] spids: [126] ) spids: [122 125] ) (command.FuncDef name: d_stop body: (command.BraceGroup children: [ (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {($ VSub_DollarName '$DAEMON')} {(-c)}) terminator: <Op_Semi ';'> ) ] action: [(C {($ VSub_DollarName '$DAEMON')} {(-k)})] spids: [16777215 221] ) ] spids: [16777215 229] ) ] spids: [210] ) spids: [206 209] ) (command.FuncDef name: d_reload body: (command.BraceGroup children: [ (command.AndOr ops: [Op_DAmp] children: [ (C {($ VSub_DollarName '$DAEMON')} {(-c)}) (C {($ VSub_DollarName '$DAEMON')} {(-r)}) ] ) ] spids: [247] ) spids: [243 246] ) (command.FuncDef name: d_status body: (command.BraceGroup children: [ (command.AndOr ops: [Op_DAmp Op_DPipe] children: [ (C {($ VSub_DollarName '$DAEMON')} {(-c)}) (command.BraceGroup children: [ (command.Sentence child: (C {(echo)} {(DQ ($ VSub_DollarName '$DESC') (' is running'))}) terminator: <Op_Semi ';'> ) (command.Sentence child: (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(0)}) terminator: <Op_Semi ';'> ) ] spids: [285] ) (command.BraceGroup children: [ (command.Sentence child: (C {(echo)} {(DQ ($ VSub_DollarName '$DESC') (' is not running'))}) terminator: <Op_Semi ';'> ) (command.Sentence child: (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(3)}) terminator: <Op_Semi ';'> ) ] spids: [304] ) ] ) ] spids: [276] ) spids: [272 275] ) (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 '$NAME'))} ) (C {(d_start)}) (C {(log_end_msg)} {($ VSub_QMark '$?')}) ] spids: [333 334 357 16777215] ) (case_arm pat_list: [{(stop)}] action: [ (C {(log_daemon_msg)} {(DQ ('Stopping ') ($ VSub_DollarName '$DESC'))} {(DQ ($ VSub_DollarName '$NAME'))} ) (C {(d_stop)}) (C {(log_end_msg)} {($ VSub_QMark '$?')}) ] spids: [360 361 384 16777215] ) (case_arm pat_list: [{(reload)} {(force-reload)}] action: [ (C {(log_daemon_msg)} {(DQ ('Reloading services for ') ($ VSub_DollarName '$DESC'))} {(DQ ($ VSub_DollarName '$NAME'))} ) (C {(d_reload)}) (C {(log_end_msg)} {($ VSub_QMark '$?')}) ] spids: [387 390 413 16777215] ) (case_arm pat_list: [{(restart)}] action: [ (C {(log_daemon_msg)} {(DQ ('Restarting ') ($ VSub_DollarName '$DESC'))} {(DQ ($ VSub_DollarName '$NAME'))} ) (C {(d_stop)}) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(Lit_Other '[')} {(DQ ($ VSub_QMark '$?'))} {(-eq)} {(0)} {(Lit_Other ']')}) terminator: <Op_Semi ';'> ) ] action: [(C {(d_start)}) (C {(log_end_msg)} {($ VSub_QMark '$?')})] spids: [16777215 450] ) ] else_action: [(C {(log_end_msg)} {(1)})] spids: [461 469] ) ] spids: [416 417 472 16777215] ) (case_arm pat_list: [{(status)}] action: [(C {(d_status)})] spids: [475 476 482 16777215] ) (case_arm pat_list: [{(Lit_Other '*')}] action: [ (command.SimpleCommand words: [ {(echo)} { (DQ ('Usage: ') ($ VSub_DollarName '$SCRIPTNAME') (' {start|stop|restart|force-reload|reload|status}') ) } ] redirects: [(redir.Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})] ) (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(3)}) ] spids: [485 486 506 16777215] ) ] spids: [324 330 508] ) (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(0)}) ] )