geomyidae

A small C-based gopherd. (gopher://bitreich.org/1/scm/geomyidae)
git clone git://r-36.net/geomyidae
Log | Files | Refs | README | LICENSE

commit 5bc940815d5e3cc95115aec8aafc4cc71ef4dda7
parent 2eaf0470ac6e7ab222d1bef795cc4dac954a0a28
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Fri, 30 Jun 2017 22:03:39 +0200

improve OpenBSD rc.d file

- arg.h changes argv, change pexp to be more generic so the rc_check is ok.
- TRUEPREFIX is used in the ports Makefile, but not processed, set the
  default path common on OpenBSD for ports daemons: /usr/local/sbin/geomyidae
  else it would be "/bin" on run-time.
- bump template header line.

Signed-off-by: Christoph Lohmann <20h@r-36.net>

Diffstat:
rc.d/OpenBSD.rc.d | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/rc.d/OpenBSD.rc.d b/rc.d/OpenBSD.rc.d @@ -1,12 +1,14 @@ #!/bin/sh # -# $OpenBSD: rc.template,v 1.6 2014/08/14 19:54:10 ajacoutot Exp $ +# $OpenBSD: geomyidae,v 1.7 2017/06/30 22:06:09 anonymous Exp $ -daemon="${TRUEPREFIX}/bin/geomyidae" +daemon="/usr/local/sbin/geomyidae" daemon_flags="-l /var/log/geomyidae.log -u _geomyidae -g _geomyidae" . /etc/rc.d/rc.subr +pexp="${daemon} .*" + rc_reload=NO rc_cmd $1