blob: 874192bfc3ea7b9c304965846a9edf2bb054892c (
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
|
#!/bin/sh
# PROVIDE: srelay
# REQUIRE: DAEMON jail
# BEFORE: LOGIN
# KEYWORD: FreeBSD NetBSD shutdown
#
# Add the following line to /etc/rc.conf to enable srelay:
#
# srelay_enable="YES"
# srelay_flags="-i 127.0.0.1"
#
. /etc/rc.subr
name=srelay
rcvar=srelay_enable
load_rc_config $name
: ${srelay_enable="NO"}
command="%%LOCALBASE%%/sbin/srelay"
pid_file="/var/run/srelay.pid"
load_rc_config $name
run_rc_command "$1"
|