Lines Matching refs:base
9 base=pgrep_j_test
23 jail -c path=/ name=${base}_1_1 ip4.addr=127.0.0.1 \
24 command=daemon -p ${PWD}/${base}_1_1.pid $sleep $sleep_amount &
26 jail -c path=/ name=${base}_1_2 ip4.addr=127.0.0.1 \
27 command=daemon -p ${PWD}/${base}_1_2.pid $sleep $sleep_amount &
31 jid1=$(jail_name_to_jid ${base}_1_1)
32 jid2=$(jail_name_to_jid ${base}_1_2)
44 pid2=$(printf "%s\n%s" "$(cat ${PWD}/${base}_1_1.pid)" \
45 "$(cat ${PWD}/${base}_1_2.pid)" | sort)
51 [ -f ${PWD}/${base}_1_1.pid ] && kill "$(cat ${PWD}/${base}_1_1.pid)"
52 [ -f ${PWD}/${base}_1_2.pid ] && kill "$(cat ${PWD}/${base}_1_2.pid)"
57 jail -c path=/ name=${base}_2_1 ip4.addr=127.0.0.1 \
58 command=daemon -p ${PWD}/${base}_2_1.pid $sleep $sleep_amount &
60 jail -c path=/ name=${base}_2_2 ip4.addr=127.0.0.1 \
61 command=daemon -p ${PWD}/${base}_2_2.pid $sleep $sleep_amount &
65 pid2=$(printf "%s\n%s" "$(cat ${PWD}/${base}_2_1.pid)" \
66 "$(cat ${PWD}/${base}_2_2.pid)" | sort)
72 [ -f ${PWD}/${base}_2_1.pid ] && kill "$(cat ${PWD}/${base}_2_1.pid)"
73 [ -f ${PWD}/${base}_2_2.pid ] && kill "$(cat ${PWD}/${base}_2_2.pid)"
78 daemon -p ${PWD}/${base}_3_1.pid $sleep $sleep_amount &
79 jail -c path=/ name=${base}_3_2 ip4.addr=127.0.0.1 \
80 command=daemon -p ${PWD}/${base}_3_2.pid $sleep $sleep_amount &
83 if [ "$pid" = "$(cat ${PWD}/${base}_3_1.pid)" ]; then
88 [ -f ${PWD}/${base}_3_1.pid ] && kill "$(cat $PWD/${base}_3_1.pid)"
89 [ -f ${PWD}/${base}_3_2.pid ] && kill "$(cat $PWD/${base}_3_2.pid)"
95 jail -c path=/ name=${base}_4_1 ip4.addr=127.0.0.1 \
96 command=daemon -p ${PWD}/${base}_4_1.pid $sleep $sleep_amount &
98 jail -c path=/ name=${base}_4_2 ip4.addr=127.0.0.1 \
99 command=daemon -p ${PWD}/${base}_4_2.pid $sleep $sleep_amount &
103 jname="${base}_4_1,${base}_4_2"
105 pid2=$(printf "%s\n%s" "$(cat ${PWD}/${base}_4_1.pid)" \
106 "$(cat ${PWD}/${base}_4_2.pid)" | sort)
112 [ -f ${PWD}/${base}_4_1.pid ] && kill "$(cat ${PWD}/${base}_4_1.pid)"
113 [ -f ${PWD}/${base}_4_2.pid ] && kill "$(cat ${PWD}/${base}_4_2.pid)"