Line 0
Link Here
|
|
|
1 |
#!/bin/sh |
2 |
|
3 |
# PROVIDE: rinetd |
4 |
# REQUIRE: DAEMON |
5 |
# BEFORE: LOGIN |
6 |
# KEYWORD: FreeBSD shutdown |
7 |
|
8 |
# |
9 |
# Add the following lines to /etc/rc.conf to enable rinetd: |
10 |
# rinetd_enable (bool): Set to "NO" by default. |
11 |
# Set it to "YES" to enable rinetd |
12 |
# rinetd_flags (str): Set to "" by default. |
13 |
# Extra flags passed to start command |
14 |
# |
15 |
. %%RC_SUBR%% |
16 |
|
17 |
name="rinetd" |
18 |
rcvar=`set_rcvar` |
19 |
|
20 |
command="%%PREFIX%%/sbin/rinetd" |
21 |
pidfile="/var/run/rinetd.pid" |
22 |
|
23 |
[ -z "$rinetd_enable" ] && rinetd_enable="NO" |
24 |
[ -z "$rinetd_flags" ] && rinetd_flags="" |
25 |
|
26 |
load_rc_config $name |
27 |
|
28 |
run_rc_command "$1" |