#!/bin/sh
#
# $FreeBSD: ports/sysutils/webmin/files/webmin.sh.in,v 1.9 2006/02/20 20:47:45 dougb Exp $
#
# PROVIDE: webmin
# REQUIRE: LOGIN
#
# Add the following line to /etc/rc.conf to enable webmin:
#
# webmin_enable="YES"
#
webmin_enable=${webmin_enable:-"NO"}
. /etc/rc.subr
name=webmin
rcvar=`set_rcvar`
prefix=/usr/local
procname=/usr/local/bin/perl
pidfile=/var/log/webmin/miniserv.pid
required_dirs=${prefix}/etc/webmin
command=${prefix}/etc/webmin/start
load_rc_config ${name}
run_rc_command "$1"
syntax highlighted by Code2HTML, v. 0.9.1