Create Init startup script in Linux
Posted on 2014-12-07
I have a java executable (.jar) file for which i want to create a linux script for starting,restarting,checking the status and stopping it.
Currently, the jar file is started with something like
"nohup java -jar mydaemon.jar </dev/null> log/daemonlog.log 2>&1 &".
I want to be able to start with something like
The daemon runs on Centos.