/[gentoo-x86]/www-servers/thttpd/files/thttpd.init.1
Gentoo

Contents of /www-servers/thttpd/files/thttpd.init.1

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Jul 13 14:08:25 2012 UTC (5 years, 6 months ago) by blueness
Branch: MAIN
CVS Tags: HEAD
Version bump, multi-instance enhancement, bug #424826

(Portage version: 2.1.10.65/cvs/Linux x86_64)

1 #!/sbin/runscript
2 # Copyright 1999-2012 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License, v3 or later
4
5 depend() {
6 need net
7 use dns logger netmount
8 after sshd
9 }
10
11 checkconfig() {
12 if [ ! -d "$THTTPD_DOCROOT" ]; then
13 eend 1 "THTTPD_DOCROOT not set correctly in /etc/conf.d/${SVCNAME}"
14 fi
15 }
16
17 start() {
18 ebegin "Starting ${SVCNAME}"
19
20 checkconfig || return 1
21
22 start-stop-daemon --quiet --start --exec /usr/sbin/thttpd \
23 --pidfile /var/run/${SVCNAME}.pid --chdir "$THTTPD_DOCROOT" -- \
24 -i /var/run/${SVCNAME}.pid \
25 -l /var/log/${SVCNAME}.log \
26 ${THTTPD_OPTS}
27 eend $?
28 }
29
30 stop() {
31 ebegin "Stopping ${SVCNAME}"
32 start-stop-daemon --quiet --stop --pidfile /var/run/${SVCNAME}.pid
33 eend $?
34 }

  ViewVC Help
Powered by ViewVC 1.1.20