ZIP based installed JWS 3 httpd Services fails to start at boot in RHEL7
Issue
- We have configured ZIP based installed JWS 3 httpd service to start at boot using below unit file in RHEL7 but it fails to start with below error.
]# systemctl status jws.service
â jws.service - The JWS3 Apache HTTP Server
Loaded: loaded (/etc/systemd/system/jws.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2016-12-02 07:10:08 CAT; 13min ago
Process: 4226 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 4214 ExecStart=/opt/jws/jws-3.0/httpd/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 4214 (code=exited, status=1/FAILURE)
apache.example.com httpd[4214]: (13)Permission denied: AH00086: httpd: could not open error log file /opt/jws/jws-3.0/httpd/logs/httpd.log.
apache.example.com httpd[4214]: Could not open log file '/opt/jws/jws-3.0/httpd/logs/error_log.2016.12.02.log' (Permission denied)
apache.example.com httpd[4214]: Could not open log file '/opt/jws/jws-3.0/httpd/logs/error_log.2016.12.02.log' (Permission denied)
apache.example.com systemd[1]: jws.service: main process exited, code=exited, status=1/FAILURE
apache.example.com kill[4226]: kill: cannot find process ""
apache.example.com systemd[1]: jws.service: control process exited, code=exited status=1
apache.example.com systemd[1]: Failed to start The JWS3 Apache HTTP Server.
apache.example.com systemd[1]: Unit jws.service entered failed state.
apache.example.com systemd[1]: jws.service failed.
file : /etc/systemd/system/jws.service
[Unit]
Description=The JWS3 Apache HTTP Server
After=network.target remote-fs.target nss-lookup.target
[Service]
Type=notify
EnvironmentFile=/opt/jws/jws-3.0/httpd/httpd24
ExecStart=/opt/jws/jws-3.0/httpd/sbin/httpd $OPTIONS -DFOREGROUND
ExecReload=/opt/jws/jws-3.0/httpd/sbin/httpd $OPTIONS -k graceful
ExecStop=/bin/kill -WINCH ${MAINPID}
KillSignal=SIGCONT
PrivateTmp=true
[Install]
WantedBy=multi-user.target
Please note if we disable the SELinux then it works fine.
Environment
- Red Hat JBoss Web Server 3.x
- Apache httpd
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.