mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-27 07:57:27 +00:00
apache2: create log/run directory via pkg_postinst
The commite789c3837ctries to create log/run directory in initscript/systemd unit file. This is not a correct method. We should create them in pkg_postinst. Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit6f4d0dbfbc) Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
d /var/run/apache2 0755 root root -
|
||||
d /var/log/apache2 0755 root root -
|
||||
@@ -5,10 +5,6 @@ After=network.target remote-fs.target nss-lookup.target
|
||||
[Service]
|
||||
Type=simple
|
||||
Environment=LANG=C
|
||||
ExecStartPre=mkdir -p /var/log/apache2
|
||||
ExecStartPre=mkdir -p /var/run/apache2
|
||||
ExecStartPre=chmod -R 0755 /var/log/apache2
|
||||
ExecStartPre=chmod -R 0755 /var/run/apache2
|
||||
ExecStart=@SBINDIR@/httpd -DFOREGROUND -D SSL -D PHP5 -k start
|
||||
ExecStop=@BASE_BINDIR@/kill -WINCH ${MAINPID}
|
||||
KillSignal=SIGCONT
|
||||
|
||||
@@ -97,11 +97,6 @@ do_start()
|
||||
return 1
|
||||
fi
|
||||
|
||||
mkdir -p /var/log/apache2
|
||||
chmod -R 0755 /var/log/apache2
|
||||
mkdir -p /var/run/apache2
|
||||
chmod -R 0755 /var/run/apache2
|
||||
|
||||
if apache_conftest ; then
|
||||
$APACHECTL start
|
||||
apache_wait_start $?
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
# <type> <owner> <group> <mode> <path> <linksource>
|
||||
d root root 0755 /var/run/apache2 none
|
||||
d root root 0755 /var/log/apache2 none
|
||||
Reference in New Issue
Block a user