Sample Header Ad - 728x90

Service running on RHEL7.5 is not running on RHEL8 (httpd service)

0 votes
1 answer
1889 views
I have service which was working fine with RHEL 7.5, now I have upgraded to RHEL 8 and same service is failing with below status: Service.service - LSB: Web Server Loaded: loaded (/etc/rc.d/init.d/Service; generated) Active: failed (Result: protocol) since Mon 2020-04-06 12:02:21 IST; 38min ago Docs: man:systemd-sysv-generator(8) Process: 403 ExecStart=/etc/rc.d/init.d/Service start (code=exited, status=0/SUCCESS) Apr 06 12:02:21 localhost.localdomain systemd: Starting LSB: Web Server... Apr 06 12:02:21 localhost.localdomain Service: httpd (pid 29434) already running Apr 06 12:02:21 localhost.localdomain systemd: Service.service: Refusing to accept PID outside of service control group, acquired through unsafe symlink chain: /usr/local/apache/logs/Service.pid Apr 06 12:02:21 localhost.localdomain systemd: Service.service: Refusing to accept PID outside of service control group, acquired through unsafe symlink chain: /usr/local/apache/logs/Service.pid Apr 06 12:02:21 localhost.localdomain systemd: Service.service: Failed with result 'protocol'. Apr 06 12:02:21 localhost.localdomain systemd: Failed to start LSB: Web Server THis is my Service unit placed under /etc/init.d/Service, same is done for RHEL 7.5 but there this service is working and in RHEL 8 it is not. One more thing here to note is web server is working as expected although giving me this error. #!/bin/sh # # chkconfig: 345 97 03 # description:Web Server # processname: httpd # config: /usr/local/Test/apache/conf/httpd.conf # pidfile: /usr/local/Test/apache/logs/httpd.pid ### BEGIN INIT INFO # Provides: Service # Required-Start: $remote_fs $network $syslog # Should-Start: # Required-Stop: # Default-Start: 3 4 5 # Default-Stop: 0 1 2 6enter code here # Short-Description: Web Server # Description: Web Server ### END INIT INFO LANG=en_US.iso88591 export LANG BASEDIR=/usr/local/Test/apache PATH=$BASEDIR/bin:/usr/bin:/bin export PATH LD_LIBRARY_PATH=$BASEDIR/lib export LD_LIBRARY_PATH inst=/usr/local/Test MIBDIRS=$inst/mibs export MIBDIRS case $1 in start) apachectl start ;; stop) apachectl stop ;; restart) apachectl restart ;; *) echo "usage: $0 { start | stop | restart }" ;; esac Plz help me into this.
Asked by DIPESH DHAMELIYA (3 rep)
Apr 7, 2020, 07:40 AM
Last activity: Apr 7, 2020, 11:26 PM