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?
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.
One other answer
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.