Re: asynchronous shell scripts in "run"
Pat Brouillette <[email protected]>
| Newsgroups | gmane.comp.djb.syslog |
|---|---|
| Message-ID | <[email protected]> |
Brian Reichert wrote: > > That's because you used 'exec' on that line. Consider this instead: > > #!/bin/sh > setuidgid <user> ./launchclientappscript & > exec 2>&1 > exec setuidgid <user> ServerApp > I've tried that, same results. >>But the clientappscript kills all of its processes >>after it finishes executing. > > > Which processes? The server? supervise? svscan? Other services? > > > paul > > when the (async, &-ed) bash script, "launchclientappscript" finishes it takes down all of the processes it launched with it.