summaryrefslogtreecommitdiff
path: root/pcr/openrc-net/lighttpd.confd
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/openrc-net/lighttpd.confd')
-rw-r--r--pcr/openrc-net/lighttpd.confd12
1 files changed, 12 insertions, 0 deletions
diff --git a/pcr/openrc-net/lighttpd.confd b/pcr/openrc-net/lighttpd.confd
new file mode 100644
index 000000000..f3afb07a5
--- /dev/null
+++ b/pcr/openrc-net/lighttpd.confd
@@ -0,0 +1,12 @@
+# /etc/conf.d/lighttpd
+
+# Location of a shell used by the 'include_shell' directive
+# in the lighttpd's configuration file
+#export SHELL="/bin/bash"
+
+# Location of the lighttpd configuration file
+LIGHTTPD_CONF="/etc/lighttpd/lighttpd.conf"
+
+# Location of the lighttpd pid file
+LIGHTTPD_PID="$(/usr/bin/awk '/^server.pid-file/{s=$3};{sub("\"","",s)};END{print s}' ${LIGHTTPD_CONF})"
+