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