blob: 05956cc6c641c494d9c3a7274551959ac7e2da6a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/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
|