summary refs log tree commit diff
path: root/src/svlogd.check
blob: 7d926ef219389402a787e1696069733e4b262601 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/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}"