diff --git a/test/notify.sh b/test/notify.sh index 3636c8f0..7185e2b0 100755 --- a/test/notify.sh +++ b/test/notify.sh @@ -54,6 +54,19 @@ test_one() assert_status "serv" "running" assert_cond "service/serv/ready" + say "Verify 'ready' is reasserted on 'initctl restart serv' ..." + texec sh -c "initctl restart serv" + sleep 1 + assert_status "serv" "running" + assert_cond "service/serv/ready" + + say "Verify 'ready' is reasserted on 'initctl reload' ..." + texec sh -c "initctl reload" + sleep 1 + texec sh -c "initctl; initctl cond dump" + assert_status "serv" "running" + assert_cond "service/serv/ready" + say "Verify 'ready' is deasserted on stop ..." texec sh -c "initctl stop serv" sleep 1