(CommandList children: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LeftVar name:PATH) rhs:{(/sbin) (Lit_Other ":") (/bin)} spids:[31])] spids: [31] ) (C {(.)} {(/lib/init/vars.sh)}) (C {(.)} {(/lib/lsb/init-functions)}) (FuncDef name: do_stop body: (BraceGroup children: [ (AndOr children: [ (C {(Lit_Other "[")} {(DQ ($ VSub_Name "$VERBOSE"))} {(Lit_Other "=")} {(no)} {(Lit_Other "]")} ) (C {(log_action_begin_msg)} {(DQ ("Mounting root filesystem read-only"))}) ] op_id: Op_DPipe ) (If arms: [ (if_arm cond: (C {(Lit_Other "[")} {(-f)} {(/var/run/init.upgraded)} {(Lit_Other "]")}) action: (CommandList children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LeftVar name:old_map) rhs: { (CommandSubPart command_list: (C {(cat)} {(/proc/1/maps)}) spids: [102 108] ) } spids: [101] ) ] spids: [101] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LeftVar name:map) rhs: {($ VSub_Name "$old_map")} spids: [111] ) ] spids: [111] ) (AndOr children: [(C {(telinit)} {(u)}) (C {(Lit_Other ":")})] op_id: Op_DPipe ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LeftVar name:i) rhs:{(0)} spids:[124])] spids: [124] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LeftVar name:timeout) rhs:{(5)} spids:[128])] spids: [128] ) (While cond: (C {(Lit_Other "[")} {(DQ ($ VSub_Name "$map"))} {(Lit_Other "=")} {(DQ ($ VSub_Name "$old_map"))} {(Lit_Other "]")} ) body: (DoGroup child: (CommandList children: [ (C {(sleep)} {(1)}) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LeftVar name:map) rhs: { (CommandSubPart command_list: (C {(cat)} {(/proc/1/maps)}) spids: [158 164] ) } spids: [157] ) ] spids: [157] ) (C {(/usr/bin/logger)} {(DQ ("waiting for init to respawn"))}) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LeftVar name:i) rhs: { (ArithSubPart anode: (ArithBinary op_id: Arith_Plus left: (RightVar name:i) right: (ArithWord w:{(Lit_Digits 1)}) ) spids: [175 180] ) } spids: [174] ) ] spids: [174] ) (If arms: [ (if_arm cond: (Sentence command: (C {(Lit_Other "[")} {($ VSub_Name "$i")} {(-eq)} {($ VSub_Name "$timeout")} {(Lit_Other "]")} ) terminator: <Op_Semi ";"> ) action: (C {(break)}) spids: [-1 197] ) ] spids: [-1 203] ) ] ) spids: [149 206] ) ) (If arms: [ (if_arm cond: (Sentence command: (C {(Lit_Other "[")} {(DQ ($ VSub_Name "$map"))} {(Lit_Other "=")} {(DQ ($ VSub_Name "$old_map"))} {(Lit_Other "]")} ) terminator: <Op_Semi ";"> ) action: (C {(/usr/bin/logger)} { (DQ ("FAIL: init failed to respawn in ") ($ VSub_Name "$timeout") (" seconds - unmounting anyway") ) } ) spids: [-1 228] ) ] else_action: (C {(/usr/bin/logger)} { (DQ ("SUCCESS: init respawned after ") ($ VSub_Name "$i") (" seconds (within ") ($ VSub_Name "$timeout") (" seconds timeout)") ) } ) spids: [240 254] ) ] ) spids: [-1 98] ) ] spids: [-1 257] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LeftVar name:MOUNT_FORCE_OPT) rhs:{(SQ )} spids:[261])] spids: [261] ) (AndOr children: [ (C {(Lit_Other "[")} {(DQ (CommandSubPart command_list:(C {(uname)} {(-s)}) spids:[267271]))} {(Lit_Other "=")} {(DQ (GNU/kFreeBSD))} {(Lit_Other "]")} ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LeftVar name:MOUNT_FORCE_OPT) rhs:{(-f)} spids:[284])] spids: [284] ) ] op_id: Op_DAmp ) (AndOr children: [ (SimpleCommand words: [ {(mount)} {($ VSub_Name "$MOUNT_FORCE_OPT")} {(-n)} {(-o)} {(remount) (Lit_Comma ",") (ro)} {(-t)} {(dummytype)} {(dummydev)} {(/)} ] redirects: [(Redirect op_id:Redir_Great arg_word:{(/dev/null)} fd:2 spids:[324])] ) (AndOr children: [ (SimpleCommand words: [ {(mount)} {($ VSub_Name "$MOUNT_FORCE_OPT")} {(-n)} {(-o)} {(remount) (Lit_Comma ",") (ro)} {(dummydev)} {(/)} ] redirects: [ (Redirect op_id: Redir_Great arg_word: {(/dev/null)} fd: 2 spids: [347] ) ] ) (C {(mount)} {($ VSub_Name "$MOUNT_FORCE_OPT")} {(-n)} {(-o)} {(remount) (Lit_Comma ",") (ro)} {(/)} ) ] op_id: Op_DPipe ) ] op_id: Op_DPipe ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LeftVar name:ES) rhs:{($ VSub_QMark "$?")} spids:[369])] spids: [369] ) (AndOr children: [ (C {(Lit_Other "[")} {(DQ ($ VSub_Name "$VERBOSE"))} {(Lit_Other "=")} {(no)} {(Lit_Other "]")} ) (C {(log_action_end_msg)} {($ VSub_Name "$ES")}) ] op_id: Op_DPipe ) ] spids: [51] ) spids: [46 50] ) (Case to_match: {(DQ ($ VSub_Number "$1"))} arms: [ (case_arm pat_list:[{(start)}] action:(NoOp) spids:[403404411-1]) (case_arm pat_list: [{(restart)} {(reload)} {(force-reload)}] action: (CommandList children: [ (SimpleCommand words: [{(echo)} {(DQ ("Error: argument '") ($ VSub_Number "$1") ("' not supported"))}] redirects: [(Redirect op_id:Redir_GreatAnd arg_word:{(2)} fd:-1 spids:[430])] ) (C {(exit)} {(3)}) ] ) spids: [414 419 439 -1] ) (case_arm pat_list:[{(stop)}] action:(C {(do_stop)}) spids:[442443449-1]) (case_arm pat_list: [{(Lit_Other "*")}] action: (CommandList children: [ (SimpleCommand words: [{(echo)} {(DQ ("Usage: ") ($ VSub_Number "$0") (" start|stop"))}] redirects: [(Redirect op_id:Redir_GreatAnd arg_word:{(2)} fd:-1 spids:[464])] ) (C {(exit)} {(3)}) ] ) spids: [452 453 473 -1] ) ] spids: [394 400 475] ) (C {(Lit_Other ":")}) ] )