rustit/mirror_runit/runit-2.1.2/src/svlogd.check
2024-03-24 23:51:57 +00:00

27 lines
414 B
Bash
Executable file

#!/bin/sh
rm -rf "${ctmp}"
svlogd
echo $?
svlogd -V
echo $?
mkdir "${ctmp}"
echo foo |svlogd "${ctmp}"
echo $?
cat "${ctmp}"/current
( echo bar; echo baz ) |svlogd "${ctmp}"
echo $?
cat "${ctmp}"/current
( echo foo; echo bar; echo baz ) |svlogd -r: -R fb "${ctmp}"
echo $?
cat "${ctmp}"/current
echo t2 >"${ctmp}"/config
( echo foo; sleep 3 ) |svlogd "${ctmp}"
echo $?
cat "${ctmp}"/current
rm -rf "${ctmp}"