#!/bin/sh [ -r ./conf ] && . ./conf # when running as vlogger@some, this is "some" # when symlinked as `log` in a service `foo`, this is "foo" # when symlinked as `log` in a service `foo@bar`, this is "bar" # when running as LOG, this is "", aka `conf.` [ -r ./conf."$1" ] && . ./conf."$1" : ${PRIORITY=daemon} ${TAG:=$1} exec vlogger ${PRIORITY:+-p "$PRIORITY"} ${TAG:+-t "$TAG"} $OPTS