Fixed
Created: Nov 14, 2024
Updated: Dec 4, 2024
Resolved Date: Dec 4, 2024
Found In Version: 10.24.33.3
Severity: Standard
Applicable for: Wind River Linux LTS 24
Component/s: Userspace
Reproduce steps:
1. Build
$setup.sh --machine intel-x86-64 --distros wrlinux --dl-layers=1 --accept-eula=yes
$ . ./environment-setup-x86_64-wrlinuxsdk-linux
$ . ./oe-init-build-env
$ vim conf/local.conf
INIT_MANAGER = "sysvinit"
IMAGE_INSTALL:append = " apache2"
$ bitbake wrlinux-image-small
2. Bootup target
3. ps | grep httpd
several httpd process can be seen
4. service apache2 stop
5. ps | grep httpd
process httpd all not stopped.
8. Steps To Reproduce
****************************
1. build
$ /lpg-build/cdc/fast_prod/WRL10_24/RCPL0003_LX04/wrlinux-10/setup.sh --machine intel-x86-64 --dl-layers=1 --distros wrlinux --templates feature/gperftools feature/grpc feature/ipv6 feature/mariadb feature/mbim feature/nfsd feature/ntp feature/package-management feature/python-tkinter feature/sysklogd feature/target-toolchain feature/xfce --dl-layers=1 --accept-eula=yes
$ . ./environment-setup-x86_64-wrlinuxsdk-linux
$ . ./oe-init-build-env
$ vim conf/local.conf
INIT_MANAGER = "sysvinit"
$ bitbake wrlinux-image-small
2. Bootup target and try to start apache2
Update /etc/apache2/httpd.conf, replace ip addr with target ip.
$ cat >> /etc/apache2/httpd.conf << EOF
<VirtualHost *:80>
DocumentRoot /usr/share/apache2/default-site/htdocs
ServerName 128.224.165.19:80
<Directory /usr/share/apache2/default-site/htdocs>
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Listen 443
<VirtualHost *:443>
DocumentRoot /usr/share/apache2/default-site/htdocs
ServerName 128.224.165.19:443
<Directory /usr/share/apache2/default-site/htdocs>
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
EOF
$ service lighttpd stop
$ service nginx stop
$ netstat -tuln | grep :80
$ service apache2 start
$ ps -e | grep http