Error when starting Jenkins
sudo systemctl start jenkins
Error Messages:
● jenkins.service - LSB: Jenkins Automation Server
Loaded: loaded (/etc/rc.d/init.d/jenkins; bad; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2021-12-03 11:46:25 CST; 4s ago
Docs: man:systemd-sysv-generator(8)
Process: 12366 ExecStart=/etc/rc.d/init.d/jenkins start (code=exited, status=127)
Dec 03 11:46:25 localhost.localdomain systemd[1]: Starting LSB: Jenkins Automation Server...
Dec 03 11:46:25 localhost.localdomain jenkins[12366]: Starting Jenkins /etc/rc.d/init.d/jenkins: line 120: daemonize: command not found
Dec 03 11:46:25 localhost.localdomain jenkins[12366]: [FAILED]
Dec 03 11:46:25 localhost.localdomain systemd[1]: jenkins.service: control process exited, code=exited status=127
Dec 03 11:46:25 localhost.localdomain systemd[1]: Failed to start LSB: Jenkins Automation Server.
Dec 03 11:46:25 localhost.localdomain systemd[1]: Unit jenkins.service entered failed state.
Dec 03 11:46:25 localhost.localdomain systemd[1]: jenkins.service failed.
Two important messages Error code 127 daemonize command not found
● jenkins.service - LSB: Jenkins Automation Server
Loaded: loaded (/etc/rc.d/init.d/jenkins; bad; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2021-12-03 11:46:25 CST; 4s ago
Docs: man:systemd-sysv-generator(8)
Process: 12366 ExecStart=/etc/rc.d/init.d/jenkins start (code=exited, status=127)
Dec 03 11:46:25 localhost.localdomain systemd[1]: Starting LSB: Jenkins Automation Server...
Dec 03 11:46:25 localhost.localdomain jenkins[12366]: Starting Jenkins /etc/rc.d/init.d/jenkins: line 120: daemonize: command not found
Dec 03 11:46:25 localhost.localdomain jenkins[12366]: [FAILED]
Dec 03 11:46:25 localhost.localdomain systemd[1]: jenkins.service: control process exited, code=exited status=127
Dec 03 11:46:25 localhost.localdomain systemd[1]: Failed to start LSB: Jenkins Automation Server.
Dec 03 11:46:25 localhost.localdomain systemd[1]: Unit jenkins.service entered failed state.
Dec 03 11:46:25 localhost.localdomain systemd[1]: jenkins.service failed.
Two important messages Error code 127 daemonize command not found
● jenkins.service - LSB: Jenkins Automation Server
Loaded: loaded (/etc/rc.d/init.d/jenkins; bad; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2021-12-03 11:46:25 CST; 4s ago
Docs: man:systemd-sysv-generator(8)
Process: 12366 ExecStart=/etc/rc.d/init.d/jenkins start (code=exited, status=127)
Dec 03 11:46:25 localhost.localdomain systemd[1]: Starting LSB: Jenkins Automation Server...
Dec 03 11:46:25 localhost.localdomain jenkins[12366]: Starting Jenkins /etc/rc.d/init.d/jenkins: line 120: daemonize: command not found
Dec 03 11:46:25 localhost.localdomain jenkins[12366]: [FAILED]
Dec 03 11:46:25 localhost.localdomain systemd[1]: jenkins.service: control process exited, code=exited status=127
Dec 03 11:46:25 localhost.localdomain systemd[1]: Failed to start LSB: Jenkins Automation Server.
Dec 03 11:46:25 localhost.localdomain systemd[1]: Unit jenkins.service entered failed state.
Dec 03 11:46:25 localhost.localdomain systemd[1]: jenkins.service failed.
Two important messages Error code 127 daemonize command not found
Solution:
yum -y install daemonize