1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/www/xitami/files/xitami.sh.in
Pav Lucistnik be630ee5ea - Update to 2.5c2
PR:		ports/96146
Submitted by:	Bernd Luevelsmeyer <bdluevel@heitec.net> (maintainer)
2006-05-21 20:39:56 +00:00

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"