#!/bin/sh # # $FreeBSD: ports/net/pen/files/pen.sh.in,v 1.1 2006/09/24 14:34:36 clement Exp $ # # PROVIDE: pen_wrapper # REQUIRE: NETWORKING SERVERS # BEFORE: DAEMON # KEYWORD: shutdown # # Add the following line to /etc/rc.conf to enable pen: # # pen_wrapper_enable="YES" # . /etc/rc.subr pen_wrapper_cmd() { ${command_interpreter} ${command} & } name=pen_wrapper rcvar=`set_rcvar` start_cmd=${name}_cmd command_interpreter="/bin/sh" command=/usr/local/bin/pen_wrapper pen_wrapper_enable=${pen_wrapper_enable:-"NO"} pen_wrapper_flags=${pen_wrapper_flags:-""} load_rc_config $name run_rc_command "$1"