Link to home
Start Free TrialLog in
Avatar of Rohit Bajaj
Rohit BajajFlag for India

asked on

init script for deployment on linux machine

HI,
I have a web application which i start by the command :
java -jar start.jar jetty.http.port=8888 inside the directory /home/robinsu/tools/jetty
I need to build an initscript for this so that when the machine restarts my program is always running.
Please help me in building or guiding to build this initscript and where to place it ?

Thanks
Avatar of gheist
gheist
Flag of Belgium image

Build process is just typing.
Press A on text editor and A appears in text file.
Avatar of Jan Bacher
What is the path of java-jar and which linux distribution and version?
Avatar of Rohit Bajaj

ASKER

i am running the command inside /root/jetty
This is CentOS 7 i have setup a virtualBox
Sorry forgot to ask, what user will this service run under?
ASKER CERTIFIED SOLUTION
Avatar of Jan Bacher
Jan Bacher
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial