#!/bin/sh # # $FreeBSD: head/net/srelay/files/srelay.in 394213 2015-08-14 13:45:47Z decke $ # # 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"