4 echo "Syntax: ${0##*/} SERVICE"
8 test x"$1" = x"${1#*/}" -a x"$1" != x"." && {
9 # has no slashes and is not a "."
10 cd "/var/service/$1" || exit $?
14 test -x "$1/page" && exec "$1/page"
16 cd "log/logdir" || exit $?
18 test "$PAGER" || PAGER=less
19 cat @* current | $PAGER