summaryrefslogtreecommitdiff
path: root/www-servers/thttpd/files/thttpd.init.1
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-09-18 23:20:40 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-09-18 23:20:40 +0100
commitf39c6dab71f5188f95650d367ece1df4f263e474 (patch)
tree9c30c203b3f09174814c41e6a63aa3522c7b7610 /www-servers/thttpd/files/thttpd.init.1
parent1b295861f983d29f9bd5d5906c7ca3cee4cf1f9a (diff)
gentoo auto-resync : 18:09:2022 - 23:20:40
Diffstat (limited to 'www-servers/thttpd/files/thttpd.init.1')
-rw-r--r--www-servers/thttpd/files/thttpd.init.134
1 files changed, 0 insertions, 34 deletions
diff --git a/www-servers/thttpd/files/thttpd.init.1 b/www-servers/thttpd/files/thttpd.init.1
deleted file mode 100644
index 3b7756eae19a..000000000000
--- a/www-servers/thttpd/files/thttpd.init.1
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License, v3 or later
-
-depend() {
- need net
- use dns logger netmount
- after sshd
-}
-
-checkconfig() {
- if [ ! -d "$THTTPD_DOCROOT" ]; then
- eend 1 "THTTPD_DOCROOT not set correctly in /etc/conf.d/${SVCNAME}"
- fi
-}
-
-start() {
- ebegin "Starting ${SVCNAME}"
-
- checkconfig || return 1
-
- start-stop-daemon --quiet --start --exec /usr/sbin/thttpd \
- --pidfile /var/run/${SVCNAME}.pid --chdir "$THTTPD_DOCROOT" -- \
- -i /var/run/${SVCNAME}.pid \
- -l /var/log/${SVCNAME}.log \
- ${THTTPD_OPTS}
- eend $?
-}
-
-stop() {
- ebegin "Stopping ${SVCNAME}"
- start-stop-daemon --quiet --stop --pidfile /var/run/${SVCNAME}.pid
- eend $?
-}