I am using Jsvc to start a java program that implements the Daemon interface. However when I issue the command
/usr/bin/jsvc -user walikha -home $JAVE_HOME -outfile out.file -errfile '$1' Jooist.Server.jar Main
However the command silently executes and displays the prompt. How can I detect if the daemon is running? In the Java executable the init, start, stop and destroy functions just print to a log file using Log4J. The log file is not created and there is absolutely no indication that the service is running. Am I missing something, or have I left out something when configuring and installing Jsvc?
You can start a service as daemon by adding your application in
/etc/init.d/ start/stop
scripts.