about summary refs log tree commit diff
path: root/services
diff options
context:
space:
mode:
authorJuan RP <xtraeme@gmail.com>2014-08-21 11:18:12 +0200
committerJuan RP <xtraeme@gmail.com>2014-08-21 11:18:12 +0200
commitdbb14e7875295da0e6dfe4a9c520ce705dee8f8d (patch)
tree65e7621728ea30c48dd0bb18c03d15c7a3f35cb5 /services
parentc5824f08a22d8af5b188fb2b36574b1bb7479810 (diff)
downloadrunit-void-dbb14e7875295da0e6dfe4a9c520ce705dee8f8d.tar.gz
runit-void-dbb14e7875295da0e6dfe4a9c520ce705dee8f8d.tar.xz
runit-void-dbb14e7875295da0e6dfe4a9c520ce705dee8f8d.zip
services/apache: create /run/httpd before starting httpd.
Diffstat (limited to 'services')
-rwxr-xr-xservices/apache/run3
1 files changed, 3 insertions, 0 deletions
diff --git a/services/apache/run b/services/apache/run
index 3d8def1..5fcf647 100755
--- a/services/apache/run
+++ b/services/apache/run
@@ -1,2 +1,5 @@
 #!/bin/sh
+mkdir -p /run/httpd || exit 1
+chmod 0710 /run/httpd || exit 1
+chown root:httpd /run/httpd || exit 1
 exec httpd -DNO_DETACH