it should still fix some issue You do have the link the script into the various run-level init directories. Try chkconfig start-foo on to enable that, assuming your box has chkconfig installed. Otherwise you need to manually put symlinks into each run level's init dir pointing back at the script.
wish help you to fix your issue You can create a runnable jar of the program and START it from the controller using: Runtime.getRuntime().exec("java -jar JAR-PATHNAME"); Inside your first app , just get the process id using the following statement which will return you the PID. ManagementFactory.getRuntimeMXBean().getName().substring(0, ManagementFactory.getRuntimeMXBean().getName().indexOf("@")
Best way to start, stop and send parameters to separate Python script from C++ application?