#!/bin/sh # # $FreeBSD: head/net/ocserv/files/ocserv.in 454856 2017-11-24 23:17:50Z dbaio $ # # 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"