Skip to content

Instantly share code, notes, and snippets.

@AysadKozanoglu
Created March 27, 2023 14:54
Show Gist options
  • Save AysadKozanoglu/63b7bbb93f23d20513f638c52b80172f to your computer and use it in GitHub Desktop.
Save AysadKozanoglu/63b7bbb93f23d20513f638c52b80172f to your computer and use it in GitHub Desktop.
jira service systemd config
# 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
#!/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
#...
# 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