Introduction
Introduction Statistics Contact Development Disclaimer Help
Add FreeBSD.rc.d. Thanks Mellowlink! - geomyidae - a small C-based gopherd (mir…
git clone git://git.codemadness.org/geomyidae
Log
Files
Refs
README
LICENSE
---
commit 25d46ce743e68c9d920190bfe29262f16214b194
parent 0731514fdbc13bf83ce43f7dc9ec51a1722577f0
Author: Christoph Lohmann <[email protected]>
Date: Wed, 20 Jul 2022 18:38:00 +0200
Add FreeBSD.rc.d. Thanks Mellowlink!
Diffstat:
A 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
@@ -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"
You are viewing proxied material from codemadness.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.