mirror of
https://github.com/troglobit/finit.git
synced 2026-10-02 05:52:48 +07:00
test: Use initctl in favor of kill -SIGHUP when reloading finit
Signed-off-by: Magnus Malm <magnusmalm@gmail.com>
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user