ports/sysutils/webmin/files/webmin.in
Doug Barton 9aac569eaa Move the rc.d scripts of the form *.sh.in to *.in
Where necessary add $FreeBSD$ to the file

No PORTREVISION bump necessary because this is a no-op
2012-08-05 23:19:36 +00:00

26 lines
408 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# 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=webmin_enable
procname=%%PERL5%%
pidfile=/var/log/webmin/miniserv.pid
required_dirs=%%PREFIX%%/etc/webmin
command=%%PREFIX%%/etc/webmin/start
load_rc_config ${name}
run_rc_command "$1"