summaryrefslogtreecommitdiffstats
path: root/meta-webserver/recipes-httpd/apache2/files/init
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2012-10-07 11:51:22 +0100
committerKoen Kooi <koen@dominion.thruhere.net>2012-10-09 11:09:23 +0200
commit6d182b316f366e3491ee50ccd021eb7a79189136 (patch)
tree3c159cb0ac7b4d3dab2cc9c06b361d7239dd6c25 /meta-webserver/recipes-httpd/apache2/files/init
parentcbac8756e815c3f141cebf6d2e6875400980a4f9 (diff)
downloadmeta-openembedded-6d182b316f366e3491ee50ccd021eb7a79189136.tar.gz
apache2: fix configuration
* Include conf files in /etc/apache2/modules.d and conf.d * Add -D PHP5 to options so that PHP is enabled if installed * Fix "reload" action in initscript Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'meta-webserver/recipes-httpd/apache2/files/init')
-rwxr-xr-xmeta-webserver/recipes-httpd/apache2/files/init6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta-webserver/recipes-httpd/apache2/files/init b/meta-webserver/recipes-httpd/apache2/files/init
index 85af742836..346dc0d52f 100755
--- a/meta-webserver/recipes-httpd/apache2/files/init
+++ b/meta-webserver/recipes-httpd/apache2/files/init
@@ -9,12 +9,12 @@
9# implementing the current HTTP standards. 9# implementing the current HTTP standards.
10### END INIT INFO 10### END INIT INFO
11 11
12ARGS="-D SSL -k start" 12ARGS="-D SSL -D PHP5 -k start"
13NAME=apache2 13NAME=apache2
14PATH=/bin:/usr/bin:/sbin:/usr/sbin 14PATH=/bin:/usr/bin:/sbin:/usr/sbin
15DAEMON=/usr/sbin/httpd 15DAEMON=/usr/sbin/httpd
16SUEXEC=/usr/lib/apache/suexec 16SUEXEC=/usr/lib/apache/suexec
17PIDFILE=/var/run/$NAME.pid 17PIDFILE=/var/apache2/logs/httpd.pid
18CONF=/etc/apache2/httpd.conf 18CONF=/etc/apache2/httpd.conf
19APACHECTL=/usr/sbin/apachectl 19APACHECTL=/usr/sbin/apachectl
20 20
@@ -40,7 +40,7 @@ case "$1" in
40 40
41 reload) 41 reload)
42 echo -n "Reloading $NAME configuration" 42 echo -n "Reloading $NAME configuration"
43 $APACHECTL reload 43 kill -HUP `cat $PIDFILE`
44 ;; 44 ;;
45 45
46 reload-modules) 46 reload-modules)