test: Use initctl in favor of kill -SIGHUP when reloading finit

Signed-off-by: Magnus Malm <magnusmalm@gmail.com>
This commit is contained in:
Magnus Malm
2021-02-24 14:31:18 +01:00
parent 2c055cb954
commit e77f3f4d74
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -24,7 +24,7 @@ say "Add a dynamic service in $FINIT_CONF"
texec sh -c "echo 'service [2345] kill:20 log /test_assets/service.sh' > $FINIT_CONF"
say 'Reload Finit'
texec kill -SIGHUP 1
texec sh -c "initctl reload"
retry 'assert_num_children 1 service.sh'
@@ -32,6 +32,6 @@ say 'Remove the dynamic service from /etc/finit.conf'
texec sh -c "echo > $FINIT_CONF"
say 'Reload Finit'
texec kill -SIGHUP 1
texec sh -c "initctl reload"
retry 'assert_num_children 0 service.sh'
@@ -24,7 +24,7 @@ say "Add a dynamic service in $FINIT_CONF_DIR/service.conf"
texec sh -c "echo 'service [2345] kill:20 log /test_assets/service.sh' > $FINIT_CONF_DIR/service.conf"
say 'Reload Finit'
texec kill -SIGHUP 1
texec sh -c "initctl reload"
retry 'assert_num_children 1 service.sh'
@@ -32,6 +32,6 @@ say 'Remove the dynamic service from /etc/finit.d/service.conf'
texec sh -c "echo > $FINIT_CONF_DIR/service.conf"
say 'Reload Finit'
texec kill -SIGHUP 1
texec sh -c "initctl reload"
retry 'assert_num_children 0 service.sh'