function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
adamgadamg 

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..

#!/bin/sh
# 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...