Hi!
This is my first patch to openbsd, so forgive me if I'm doing something
terribly wrong, I happily accept all criticism to doing this the right way!
Patch reasoning:
With vault currently in the repo, if vault does not start properly,
there is no easy way to figure out why, as vault does not log startup
errors/etc to syslog/etc. Vault upstream has zero desire to fix this
see: https://github.com/hashicorp/vault/issues/2497
So I'm proposing we update vault in the repo to redirect stdout/err to
syslog. Which is what the attached patch does.
Index: pkg/vault.rc
===================================================================
RCS file: /cvs/ports/security/vault/pkg/vault.rc,v
retrieving revision 1.4
diff -u -p -u -p -r1.4 vault.rc
--- pkg/vault.rc 11 Jan 2018 19:27:09 -0000 1.4
+++ pkg/vault.rc 1 May 2018 14:38:34 -0000
@@ -3,7 +3,7 @@
# $OpenBSD: vault.rc,v 1.4 2018/01/11 19:27:09 rpe Exp $
daemon="${TRUEPREFIX}/bin/vault server"
-daemon_flags="-config=${SYSCONFDIR}/vault.hcl"
+daemon_flags="-config=${SYSCONFDIR}/vault.hcl 2>&1 | logger -t vault"
daemon_user="_vault"
. /etc/rc.d/rc.subr