Can you configure the Liberty server to run as a Linux service
Becky McDermott (92●11●40)
| asked Jul 18 '18, 11:52 a.m.
edited Jul 19 '18, 2:11 a.m. by Ralph Schoon (63.5k●3●36●46) 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?
|
Accepted answer
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
|
One other answer
Ralph Schoon (63.5k●3●36●46)
| answered Jul 19 '18, 2:10 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER 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.
|
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.