consul.rc 295 B

123456789101112131415161718
  1. #!/bin/sh
  2. #
  3. # $OpenBSD: consul.rc,v 1.3 2017/05/27 19:57:07 ajacoutot Exp $
  4. daemon="${TRUEPREFIX}/bin/consul agent"
  5. daemon_flags="-config-dir ${SYSCONFDIR}/consul.d"
  6. daemon_user="_consul"
  7. . /etc/rc.d/rc.subr
  8. rc_bg=YES
  9. rc_stop() {
  10. pkill -INT -T "${daemon_rtable}" -xf "${pexp}"
  11. }
  12. rc_cmd $1