diff options
author | obache <obache> | 2008-04-06 11:50:36 +0000 |
---|---|---|
committer | obache <obache> | 2008-04-06 11:50:36 +0000 |
commit | 0eaa35e6faf273d1210d8cf83b438a67eeff0380 (patch) | |
tree | 43ef3fbdf797932e5da5b9d9a953dcd1e8c502e1 /net/Geomyidae/files/Geomyidae.sh | |
parent | 0d20c33ff79859a747f71557af677f71ed89851f (diff) | |
download | pkgsrc-0eaa35e6faf273d1210d8cf83b438a67eeff0380.tar.gz |
Import Geomyidae version 0.11.
Based on packaged by Jeff Woodall and provided in PR 38261.
Geomyidae is a daemon for serving the protocol specified in RFC
1436 (Gopher). Under 1000 lines of C by design, it is lightweight
yet supports dynamic content, automatic file/directory indexing,
logging and privilege separation.
Diffstat (limited to 'net/Geomyidae/files/Geomyidae.sh')
-rw-r--r-- | net/Geomyidae/files/Geomyidae.sh | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/net/Geomyidae/files/Geomyidae.sh b/net/Geomyidae/files/Geomyidae.sh new file mode 100644 index 00000000000..de8ea10a594 --- /dev/null +++ b/net/Geomyidae/files/Geomyidae.sh @@ -0,0 +1,59 @@ +#!@RCD_SCRIPTS_SHELL@ +# +# $NetBSD: Geomyidae.sh,v 1.1.1.1 2008/04/06 11:50:36 obache Exp $ +# + +# PROVIDE: Geomyidae +# REQUIRE: DAEMON +# BEFORE: LOGIN + +$_rc_subr_loaded . /etc/rc.subr +#. /etc/rc.subr + +name="Geomyidae" +rcvar="$name" +command="@PREFIX@/sbin/$name" + +##################################################### +# Geomyidae Options Setion - "?" => Geomyidae(8) # +# Uncomment & define options (defaults are shown) # +##################################################### +# +#LOGFILE="-l /var/log/gopherd.log" +#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" + +###################################################### +# Now remove any UNDEFINED options from line below: # +###################################################### +# +command_args="$LOGFILE $LOGLEVEL $HTDOCS $PORT $SPORT $USR $GRP $HOST $IP" + + +###################################################### +# Uncomment this section if a PID file is desired # +###################################################### +# +#pidfile="/var/run/${name}.pid" +#start_cmd="Geomyidae_start" +# +#Geomyidae_start() +#{ +# echo "Starting $name" +# $name $command_args +# pgrep -x $name > $pidfile +#} + +###################################################### +# Lastly, add the following to /etc/rc.conf: # +# "Geomyidae=YES" (without the quotes) # +###################################################### + +load_rc_config $name +run_rc_command "$1" |