I use the script of PbxMan to run a Java app as a service on this answer.
All work perfectly when I launch my app in terminal but when it's running as a service, external commands are not executed.
Example of how I execute commands :
String [] startStreamWCTour = {
"/usr/local/bin/mjpg_streamer",
"-i", "/usr/local/lib/input_uvc.so -f 10r VGA",
"-o", "/usr/local/lib/output_http.so -w /var/www/cam"};
Process p = Runtime.getRuntime().exec( startStreamWCTour );
...
and nothing is executed...
Maybe I have to add something to my commands...? ( I'm a little newbish on Linux ;) )