blob: 1fcba2fc12899d0f1ea0723c61205161b0791bc0 [file] [log] [blame]
#!/sbin/runscript
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
# $Id$
AXHTTPD_USER="axtls"
AXHTTPD_GROUP="axtls"
AXHTTPD_DAEMON="/usr/bin/axhttpd"
depend() {
need net
}
start() {
ebegin "Starting axhttpd"
start-stop-daemon --quiet --start "${AXHTTPD_DAEMON}" \
--user "${AXHTTPD_USER}":"${AXHTTPD_GROUP}" \
-- ${AXHTTPD_OPTS}
eend $?
}
stop() {
ebegin "Stopping axhttpd"
start-stop-daemon --quiet --stop "${AXHTTPD_DAEMON}"
eend $?
}