+ Start a Discussion

Random Tip: Starting Java process as daemon on unix

I just looked up how run an arbitrary Java process on unix as daemon (so it doesn't exit when you log out), so thought'd I share it here - its hack but it works..

# email2case launcher
echo "Starting Email2Case"
nohup /vol1/java/j2sdk1.4.2_05/jre/bin/java -jar email2case-demo.jar sfdcConfig\
.txt >> email2case.log &

Unless your app supports some external shutdown command, you need to kill the process manually...