diff options
| author | 2026-01-19 20:18:38 +0100 | |
|---|---|---|
| committer | 2026-01-19 20:18:38 +0100 | |
| commit | 647fa59ecbc8b51309ef20288de5eb73a042f869 (patch) | |
| tree | 71bcdb01237d7b67df91588bf84572050b161155 /vlogger@ | |
initial importnitro
Diffstat (limited to '')
| -rwxr-xr-x | vlogger@/run | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/vlogger@/run b/vlogger@/run new file mode 100755 index 0000000..05956cc --- /dev/null +++ b/vlogger@/run @@ -0,0 +1,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 |
