blob: c224c5545b02985a04978dc6c762093fe581bc03 (
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
|
#!/bin/sh
# PROVIDE: ocserv
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# Add the following to /etc/rc.conf to enable ocserv:
#
# ocserv_enable="YES"
#
. /etc/rc.subr
name="ocserv"
rcvar="ocserv_enable"
load_rc_config ${name}
: ${ocserv_enable:="NO"}
: ${ocserv_pidfile:=/var/run/${name}/pid}
command=/usr/local/sbin/${name}
run_rc_command "$1"
|