For instance say I'd want to run my Java process to dump some status information and then exit, while the main application keeps running. Since the entire startup of the application is configured in the service-wrapper, with alle dependencies, jar files, etc., it would be ideal to have the wrapper start the process. I'd run something like /path-to/myapp.sh status or even sudo service myapp mystatus. But since the main process is already running, the wrapper won't let me start it again, which makes...
Allow running a second process