#!/bin/sh # # $FreeBSD: head/www/monast/files/monast.in 340872 2014-01-24 00:14:07Z mat $ # # PROVIDE: monast # BEFORE: LOGIN # KEYWORD: shutdown # # Add the following line to /etc/rc.conf to enable the monast daemon: # # monast_enable="YES" # . /etc/rc.subr name=monast rcvar=monast_enable command="%%PREFIX%%/monast/monast.py" pidfile="/var/run/${name}.pid" load_rc_config ${name} : ${monast_enable="NO"} command_args="--daemon" run_rc_command "$1"