Could this be a valid systemd service unit file?

This was tested on Debian Jessie and it works

Source http://homepage.ntlworld.com/jonathan.deboynepollard/FGA/systemd-house-of-horror/tomcat.html

root@bamboo01.dc1:~# cat /etc/systemd/system/bamboo.service
[Unit]
Description=Atlassian Bamboo Service
After=syslog.target network.target

[Service]
User=atlassian
Environment=JAVA_OPTS=-Xmx6G
ExecStart=/opt/atlassian/bamboo/bin/catalina.sh run
Restart=on-failure

[Install]
WantedBy=multi-user.target
root@bamboo01.dc1:~#

1 answer

I use this one:

# cat /etc/systemd/system/bamboo.service
[Unit]
Description=Bamboo Application Server
After=postgresql.service
Requires=postgresql.service
# $BAMBOO_HOME - set in /opt/atlassian/bamboo/current/atlassian-bamboo/WEB-INF/classes/bamboo-init.properties
AssertPathExists=/opt/bamboo/application-data

[Service]
Type=forking
User=bamboo
Restart=always
# http://serverfault.com/questions/695849/services-remain-in-failed-state-after-stopped-with-systemctl
SuccessExitStatus=143
ExecStart=/opt/atlassian/bamboo/current/bin/startup.sh
ExecStop=/opt/atlassian/bamboo/current/bin/shutdown.sh

[Install]
WantedBy=multi-user.target

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted yesterday in Confluence

Calling all marketing teams who use Confluence - we want to hear from you!

Hi Community! me again 🙂 If you’re a marketing team using Confluence, we want to hear your story! How did you start using Confluence? What are your use cases? What have been some of the benefits?...

83 views 2 3
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you