2000-11-01 14:09:35 +01:00
|
|
|
#!/bin/sh
|
2004-06-19 22:58:44 +02:00
|
|
|
#
|
2000-11-01 14:09:35 +01: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%%
|
2000-11-25 21:29:43 +01:00
|
|
|
|
2004-06-19 22:58:44 +02:00
|
|
|
name=webmin
|
|
|
|
rcvar=`set_rcvar`
|
2000-11-25 21:29:43 +01:00
|
|
|
|
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
|
2000-11-25 21:29:43 +01:00
|
|
|
|
2004-06-19 22:58:44 +02:00
|
|
|
load_rc_config ${name}
|
|
|
|
run_rc_command "$1"
|