mirror of
https://github.com/troglobit/finit.git
synced 2026-11-01 13:10:32 +00:00
test: log service.sh output to stderr
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
035f06e137
commit
be4062f019
1 file changed
+2
-1
@@ -21,11 +21,12 @@ say "Test start $(date)"
|
|||||||
rm -f "$TENV_ROOT"/oldpid
|
rm -f "$TENV_ROOT"/oldpid
|
||||||
|
|
||||||
say "Add service stanza in $FINIT_CONF"
|
say "Add service stanza in $FINIT_CONF"
|
||||||
texec sh -c "echo 'service [2345] respawn log service.sh -- Test service' > $FINIT_CONF"
|
texec sh -c "echo 'service [2345] respawn log:stderr service.sh -- Test service' > $FINIT_CONF"
|
||||||
|
|
||||||
say 'Reload Finit'
|
say 'Reload Finit'
|
||||||
texec sh -c "initctl reload"
|
texec sh -c "initctl reload"
|
||||||
#texec sh -c "initctl status"
|
#texec sh -c "initctl status"
|
||||||
|
#texec sh -c "initctl debug"
|
||||||
|
|
||||||
retry 'assert_num_children 1 service.sh'
|
retry 'assert_num_children 1 service.sh'
|
||||||
texec sh -c "initctl status service.sh"
|
texec sh -c "initctl status service.sh"
|
||||||
|
|||||||
Reference in new issue
Block a user