#!/bin/sh # # $FreeBSD: head/comms/ser2net/files/ser2net.in 340851 2014-01-23 19:55:14Z mat $ # # PROVIDE: ser2net # REQUIRE: DAEMON # BEFORE: LOGIN # KEYWORD: shutdown # Add the following lines to /etc/rc.conf to enable ser2net: # ser2net_enable="YES" # ser2net_flags="" . /etc/rc.subr name="ser2net" rcvar=ser2net_enable command="%%PREFIX%%/sbin/ser2net" load_rc_config $name : ${ser2net_enable="NO"} : ${ser2net_pidfile="/var/run/ser2net.pid"} start_cmd="/usr/sbin/daemon -p ${ser2net_pidfile} $command $rc_flags $command_args" stop_postcmd="rm -f /var/lock/subsys/ser2net" run_rc_command "$1"