From d7f290365ad66a00913fb60a942b1e4075fc81c2 Mon Sep 17 00:00:00 2001 From: Gerrit Pape Date: Sat, 23 Jul 2005 13:12:39 +0000 Subject: minimal sv.check. --- src/sv.check | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 src/sv.check (limited to 'src/sv.check') diff --git a/src/sv.check b/src/sv.check new file mode 100755 index 0000000..a778719 --- /dev/null +++ b/src/sv.check @@ -0,0 +1,25 @@ +#!/bin/sh +rm -rf "${ctmp}" +trap 'rm -rf "${ctmp}"' EXIT + +sv +echo $? + +mkdir "${ctmp}" +cat >"${ctmp}"/run <<-\EOT + #!/bin/sh + echo starting + exec sleep 14 + EOT +chmod 700 "${ctmp}"/run +runsv "${ctmp}" & +sleep 1 +test -r "${ctmp}"/supervise/stat || sleep 2 +sv down "${ctmp}" +echo $? +sleep 1 +cat "${ctmp}"/supervise/stat +sv exit "${ctmp}" +echo $? +wait +echo $? -- cgit 1.4.1