mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
be630ee5ea
PR: ports/96146 Submitted by: Bernd Luevelsmeyer <bdluevel@heitec.net> (maintainer)
37 lines
642 B
Bash
37 lines
642 B
Bash
#!/bin/sh
|
|
|
|
# PROVIDE: httpd
|
|
# REQUIRE: DAEMON
|
|
#
|
|
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
|
|
# to enable this service:
|
|
#
|
|
# xitami_enable (bool): Set to NO by default.
|
|
# Set it to YES to enable xitami.
|
|
# xitami_config (path): Set to %%PREFIX%%/etc/xitami
|
|
# by default.
|
|
#
|
|
|
|
. %%RC_SUBR%%
|
|
|
|
name="xitami"
|
|
start_cmd=xitami_start
|
|
rcvar=xitami_enable
|
|
|
|
command=%%PREFIX%%/libexec/xitami
|
|
|
|
: ${xitami_enable="NO"}
|
|
: ${xitami_config="%%PREFIX%%/etc/xitami"}
|
|
|
|
|
|
xitami_start()
|
|
{
|
|
echo "Starting xitami."
|
|
cd ${xitami_config}
|
|
${command} -s >/dev/null
|
|
}
|
|
|
|
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|