blob: 3ac0fc1eeebd88adac17c3f68a723cf2703ffb22 (
plain)
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
|
#!/sbin/openrc-run
# 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 $?
}
|