mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-29 05:38:00 +00:00
27 lines
407 B
Bash
27 lines
407 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=%%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"
|