Introduction
Introduction Statistics Contact Development Disclaimer Help
NetBSD.rc.d - geomyidae - A small C-based gopherd.
git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfri…
Log
Files
Refs
Tags
README
LICENSE
---
NetBSD.rc.d (1440B)
---
1 #!/bin/sh
2 #
3
4 # PROVIDE: geomyidae
5 # REQUIRE: LOGIN
6 # KEYWORD: shutdown
7
8 $_rc_subr_loaded . /etc/rc.subr
9
10 name="geomyidae"
11 rcvar=$name
12 command="/usr/local/bin/${name}"
13
14 #####################################################
15 # Geomyidae Options Section - "?" => geomyidae(8) #
16 # Uncomment & define options (defaults are shown) #
17 #####################################################
18 #
19 #LOGFILE="-l /var/log/gopherlog"
20 #LOGLEVEL="-v 7"
21 #HTDOCS="-b /var/gopher"
22 #PORT="-p 70"
23 #SPORT="-o 70"
24 #USR="-u $USER"
25 #GRP="-g $GROUP"
26 #HOST="-h localhost"
27 #IP="-i 127.0.0.1"
28
29 ######################################################
30 # Next, add all DEFINED options to command_args= #
31 ######################################################
32 #
33 #command_args="$LOGFILE $LOGLEVEL $HTDOCS $PORT $SPORT $USR $GRP $HOST $…
34 command_args=""
35
36
37 ######################################################
38 # Uncomment this section if a PID file is desired #
39 ######################################################
40
41 #pidfile="/var/run/${name}.pid"
42 #start_cmd="geomyidae_start"
43 #
44 #geomyidae_start()
45 #{
46 # echo "Starting $name"
47 # $command $command_args
48 # pgrep -n $name > $pidfile
49 #}
50
51 ######################################################
52 # Lastly, add the following to /etc/rc.conf: #
53 # "geomyidae=YES" (without the quotes) #
54 ######################################################
55
56 load_rc_config $name
57 run_rc_command "$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.