I was trying to autostart JIRA from this guide https://confluence.atlassian.com/jira064/starting-jira-automatically-on-linux-720411810.html. I performed step 8.
But really do not understand what went wrong.
Now here is the issue:
I entered : /etc/init.d/jira start
Output: none
I entered: systemctl status jira.service
Output:
jira.service
Loaded: loaded (/etc/init.d/jira; generated)
Active: failed (Result: exit-code) since Wed 2018-10-03 15:07:42 PKT; 1min 18s ago
Docs: man:systemd-sysv-generator(8)
Process: 21058 ExecStart=/etc/init.d/jira start (code=exited, status=203/EXEC)
softrix-server systemd[1]: Starting jira.service...
softrix-server systemd[21058]: jira.service: Failed to execute command: Exec format error
softrix-server systemd[21058]: jira.service: Failed at step EXEC spawning /etc/init.d/jira: Exec format error
softrix-server systemd[1]: jira.service: Control process exited, code=exited status=203
softrix-server systemd[1]: jira.service: Failed with result 'exit-code'.
softrix-server systemd[1]: Failed to start jira.service.
Please help on how to fix init script so I can start jira
There is actually no startup script for linux distributions that are using systemd: https://jira.atlassian.com/browse/JRASERVER-42000
You should find this post useful, here's an example on how to create a JIRA service for systemd: https://community.atlassian.com/t5/Jira-questions/Re-CentOS-7-systemd-startup-scripts-for-Jira-Fisheye/qaq-p/157581/comment-id/66079#M66079
In the meantime, you can also start JIRA via $JIRA_INSTALL/bin/start-jira.sh
Well I managed to get the init script /etc/init.d/jira to work
BTW I am using Ubuntu.
But the problem now is I am still not able to start JIRA at startup.
I ran this
update-rc.d jira defaults
command from this guide https://confluence.atlassian.com/jirakb/starting-jira-automatically-on-linux-828796713.html?os_destination=%2Fjirakb%2Fstarting-jira-automatically-on-linux-828796713.html
But unable to understand on how to run these commands so the process is complete and it can auto start at startup.
Adding system startup for /etc/init.d/jira ...
/etc/rc0.d/K20jira -> ../init.d/jira
/etc/rc1.d/K20jira -> ../init.d/jira
/etc/rc6.d/K20jira -> ../init.d/jira
/etc/rc2.d/S20jira -> ../init.d/jira
/etc/rc3.d/S20jira -> ../init.d/jira
/etc/rc4.d/S20jira -> ../init.d/jira
/etc/rc5.d/S20jira -> ../init.d/jira
Please guide me on how to run these commands?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.