summaryrefslogtreecommitdiff
path: root/svlogc
blob: 1df3a598915412c5dbfd99eeca98952109728a5e (plain)
1
2
3
4
#!/bin/sh

SERV_NAME=$(echo "$1" | sed 's/\/log$//')
[ -f /var/log/"$SERV_NAME"/current ] && tac /var/log/"$(echo "$1" | sed 's/\/log$//')"/current | less || echo "Cannot read log"