Create systemd service on RHEL7 for Atlassian Crowd

Advertisements
[root@testserv]# cat /usr/lib/systemd/system/crowd.service
[Unit]
Description=Crowd Service
After=network.target iptables.service firewalld.service firewalld.service httpd.service

[Service]
Type=forking
User=root
Environment=JRE_HOME=/usr/java/jdk1.8.0_74
ExecStart=/opt/atlassian/atlassian-crowd-2.8.4/bin/start_crowd.sh
ExecStop=/opt/atlassian/atlassian-crowd-2.8.4/bin/stop_crowd.sh
ExecReload=/opt/atlassian/atlassian-crowd-2.8.4/bin/stop_crowd.sh | sleep 60 | //opt/atlassian/atlassian-crowd-2.8.4/bin/start_crowd.sh

[Install]

WantedBy=multi-user.target

Register new service

systemctl daemon-reload
systemctl enable crowd.service 
systemctl start crowd.service

 

Advertisements

Add a Comment

Your email address will not be published.