Wednesday, February 21, 2024
HomeSoftware EngineeringHow you can begin Java Jar as Service on Linux

How you can begin Java Jar as Service on Linux


When you have a Java Jar file, you possibly can run it as a service beneath Linux/Ubuntu.

sudo ln -s /var/www/japi-0.0.1-SNAPSHOT.jar /and so on/init.d/japi

Now you should use the default init.d verbs [start,stop,restart,status].

Moreover, init.d additionally provides the next.

Utilization in your new init.d service

Utilization: /and so on/init.d/japi cease

Begin Java Service

sudo /and so on/init.d/japi begin

Cease Java Service

sudo /and so on/init.d/japi cease

Restart Java Service

sudo /and so on/init.d/japi restart

Standing Info

sudo /and so on/init.d/japi standing
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments