Introduction
Introduction Statistics Contact Development Disclaimer Help
improve OpenBSD rc.d file - geomyidae - A small C-based gopherd.
git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfri…
Log
Files
Refs
Tags
README
LICENSE
---
commit 5bc940815d5e3cc95115aec8aafc4cc71ef4dda7
parent 2eaf0470ac6e7ab222d1bef795cc4dac954a0a28
Author: Hiltjo Posthuma <[email protected]>
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 <[email protected]>
Diffstat:
M 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
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.