diff options
author | Changqing Li <changqing.li@windriver.com> | 2020-05-14 16:03:56 +0800 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2020-05-20 16:50:45 +0000 |
commit | 49b9e0ccd93bb9a3cb58af691d134388b0b71a0a (patch) | |
tree | 175f9aa747f729ec8e5fc65df457d68fd99539ac /meta-networking/recipes-support | |
parent | 00a0a2599da41984d1319e272e4969766f3f67a0 (diff) | |
download | meta-openembedded-49b9e0ccd93bb9a3cb58af691d134388b0b71a0a.tar.gz |
apache2: fix service start fail
reproduce steps:
1. boot up target
2. scp apache2-2.4.41-r0.1.aarch64.rpm on target
3. rpm -i apache2-2.4.41-r0.1.aarch64.rpm
4. systemctl status apache2
Error:
httpd[7767]: (2)No such file or directory: AH02291: Cannot access directory '/var/log/apache2/' for main error log
with the old way, /var/log/apache2/ is created by service
systemd-tmpfiles-setup during boot, so only works when apache2
already installed before boot, in above scenario,
/var/log/apache2/ will not created. fix by creating it in the
service file. similar fix for sysV system
Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit e789c3837ca8d65abb4bac29dc2e5c595c8ce05b)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta-networking/recipes-support')
0 files changed, 0 insertions, 0 deletions