Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Can you configure the Liberty server to run as a Linux service

 According to the on-line help, to start/stop the Jazz server (running on Liberty), you have to use the server.startup/server.shutdown scripts.


Is there anyway to configure things so that the Liberty server runs as a service under Linux?

That way if the VM re-starts, the Jazz server will automatically start up?

0 votes


Accepted answer

Permanent link

 I was able to follow the jazz.service example at the end of:  https://jazz.net/forum/questions/205056/jts-linux-service-fails


I placed this text in the file:  /lib/systemd/system.jazz.service

and then used the following commands to start the service:

# systemctl start jazz.service
# systemctl enable jazz.service

To stop the service, I use:

# systemctl stop jazz.service
# systemctl disable jazz.service

Once I started/enabled the service, the jts application started up.

Ralph Schoon selected this answer as the correct answer

0 votes


One other answer

Permanent link

As far as I know it is simple to call a shell script on startup and the same applies for shutting down the system. This way you can hook it up in your system. See https://www.google.com/search?q=linux+run+shell+script+on+startup&ie=utf-8&oe=utf-8 you might want to look at the existing services and how they are started.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 37

Question asked: Jul 18 '18, 11:52 a.m.

Question was seen: 4,342 times

Last updated: Jul 23 '18, 6:59 p.m.

Confirmation Cancel Confirm