aboutsummaryrefslogtreecommitdiff
path: root/vlogger@
diff options
context:
space:
mode:
Diffstat (limited to 'vlogger@')
-rwxr-xr-xvlogger@/run12
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