[Unit]
Description=Atlassian Systemd Jira Service
After=syslog.target network.target

[Service]
Type=forking
Environment="JAVA_HOME=<%= scope.lookupvar('jira::javahome') %>"
PIDFile=<%= scope.lookupvar('jira::webappdir') %>/work/catalina.pid
User=<%= scope.lookupvar('jira::user') %>
ExecStart=<%= scope.lookupvar('jira::webappdir') %>/bin/start-jira.sh
ExecStop=<%= scope.lookupvar('jira::webappdir') %>/bin/stop-jira.sh

[Install]
WantedBy=multi-user.target

[Unit]
Description=Atlassian Systemd Jira Service
After=syslog.target network.target

[Service]
Type=forking
Environment="JAVA_HOME=<%= scope.lookupvar('jira::javahome') %>"
User=<%= scope.lookupvar('jira::user') %>
ExecStart=<%= scope.lookupvar('jira::webappdir') %>/bin/start-jira.sh
ExecStop=<%= scope.lookupvar('jira::webappdir') %>/bin/stop-jira.sh

[Install]
WantedBy=multi-user.target

Remove parameter PIDFile to prevent error messages
Remove parameter PIDFile to prevent error messages

May 26 13:01:40 centos7-64-1 systemd[1]: New main
PID 3276 does not belong to service, and PID file
is not owned by root. Refusing.
