summaryrefslogtreecommitdiff
path: root/sysutils/webmin/files/webmin.in
blob: 797951d52c6807df39ad578fee102226aee527dc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh

# 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

required_files=%%PREFIX%%/etc/webmin/var-path
webmin_var_path=`cat %%PREFIX%%/etc/webmin/var-path`

procname=%%PERL%%
pidfile=${webmin_var_path}/miniserv.pid
required_dirs=%%PREFIX%%/etc/webmin
command=%%PREFIX%%/etc/webmin/start

load_rc_config ${name}
run_rc_command "$1"