| tAdd FreeBSD.rc.d. Thanks Mellowlink! - 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 25d46ce743e68c9d920190bfe29262f16214b194 |
| parent 0731514fdbc13bf83ce43f7dc9ec51a1722577f0 |
| Author: Christoph Lohmann <20h@r-36.net> |
| Date: Wed, 20 Jul 2022 18:38:00 +0200
Add FreeBSD.rc.d. Thanks Mellowlink!
Diffstat:
rc.d/FreeBSD.rc.d | 61 +++++++++++++++++++++++++++++++
1 file changed, 61 insertions(+), 0 deletions(-)
--- |
| diff --git a/rc.d/FreeBSD.rc.d b/rc.d/FreeBSD.rc.d |
| t@@ -0,0 +1,61 @@
+#!/bin/sh
+
+# PROVIDE: geomyidae
+# REQUIRE: DAEMON
+# BEFORE: LOGIN
+# KEYWORD: shutdown
+
+
+. /etc/rc.subr
+
+name=geomyidae
+rcvar=$name
+
+command="/usr/local/bin/$name"
+
+geomyidae_enable=${geomyidae_enable:-"NO"}
+
+#####################################################
+# Geomyidae Options Section - "?" => geomyidae(8) #
+# Uncomment & define options (defaults are shown) #
+#####################################################
+#
+#LOGFILE="-l /var/log/gopherlog"
+#LOGLEVEL="-v 7"
+#HTDOCS="-b /var/gopher"
+#PORT="-p 70"
+#SPORT="-o 70"
+#USR="-u $USER"
+#GRP="-g $GROUP"
+#HOST="-h localhost"
+#IP="-i 127.0.0.1"
+
+######################################################
+# Next, add all DEFINED options to command_args= #
+######################################################
+#
+#command_args="$LOGFILE $LOGLEVEL $HTDOCS $PORT $SPORT $USR $GRP $HOST $IP"
+#command_args=""
+
+
+######################################################
+# Uncomment this section if a PID file is desired #
+######################################################
+
+#pidfile="/var/run/${name}.pid"
+#start_cmd="geomyidae_start"
+#
+#geomyidae_start()
+#{
+# echo "Starting $name"
+# $command $command_args
+# pgrep -n $name > $pidfile
+#}
+
+######################################################
+# Lastly, add the following to /etc/rc.conf: #
+# "geomyidae=YES" (without the quotes) #
+######################################################
+
+load_rc_config $name
+run_rc_command "$1" |