freebsd-ports/sysutils/webmin/files/webmin.sh.in

28 lines
421 B
Bash
Raw Normal View History

#!/bin/sh
2004-06-19 22:58:44 +02:00
#
# $FreeBSD$
2004-06-19 22:58:44 +02:00
#
# PROVIDE: webmin
# REQUIRE: LOGIN
#
# Add the following line to /etc/rc.conf to enable webmin:
#
# webmin_enable="YES"
#
2006-01-16 22:20:09 +01:00
webmin_enable=${webmin_enable:-"NO"}
2004-06-19 22:58:44 +02:00
. %%RC_SUBR%%
2004-06-19 22:58:44 +02:00
name=webmin
rcvar=`set_rcvar`
2004-06-19 22:58:44 +02:00
prefix=%%PREFIX%%
procname=%%PERL5%%
pidfile=/var/log/webmin/miniserv.pid
required_dirs=${prefix}/etc/webmin
command=${prefix}/etc/webmin/start
2004-06-19 22:58:44 +02:00
load_rc_config ${name}
run_rc_command "$1"