Created
March 27, 2023 14:54
-
-
Save AysadKozanoglu/63b7bbb93f23d20513f638c52b80172f to your computer and use it in GitHub Desktop.
jira service systemd config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# info: | |
# create new service config file | |
# touch /lib/systemd/system/jira.service | |
# chmod 664 /lib/systemd/system/jira.service | |
# | |
# jira.service config | |
[Unit] | |
Description=Atlassian Jira | |
After=network.target | |
[Service] | |
Type=forking | |
User=jira | |
LimitNOFILE=20000 | |
PIDFile=/opt/atlassian/jira/work/catalina.pid | |
ExecStart=/opt/atlassian/jira/bin/start-jira.sh | |
ExecStop=/opt/atlassian/jira/bin/stop-jira.sh | |
[Install] | |
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### BEGIN INIT INFO | |
# Provides: jira.service | |
# Required-Start: $all | |
# Required-Stop: | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: | |
# Short-Description: jira | |
### END INIT INFO | |
#... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# purge sysV symlink for jira | |
rm -rf /etc/init.d/jira | |
systemctl daemon-reload | |
systemctl enable jira.service | |
systemctl start jira.service | |
systemctl status jira.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment