summaryrefslogtreecommitdiff
path: root/svlogc
blob: 7b77a67f334d1954983e8c918ce9119c7b943009 (plain)
1
2
3
4
#!/sbin/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"