Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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
TAGS
Community showcase
Published in Bamboo

Bamboo 7.1 is here and is packed with value!

I'm happy to announce that Bamboo 7.1 has been released and it’s overflowing with awesome new features. Top-voted issues First and foremost, a bunch of JAC top voted issues has been delivered - y...

671 views 1 6
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you