Re: asynchronous shell scripts in "run"

Pat Brouillette <[email protected]>
Newsgroups gmane.comp.djb.syslog
Message-ID <[email protected]>
Paul Jarc wrote:
> Pat Brouillette <[email protected]> wrote:
> 
>>>Which processes?  The server?  supervise?  svscan?  Other services?
>>
>>when the (async, &-ed) bash script, "launchclientappscript" finishes it 
>>takes down all of the processes it launched with it.
> 
> 
> That's not very informative.  Give us a list of all the processes
> started via this run script.  Which ones are exiting?  Which ones
> should be exiting, and which should not?  Are they killed by a signal
> (which signal?), or are they calling exit()?
> 

I'm trying to run vncserver on a clients machine on a specific user account.

so the "run" script goes something like....

exec seguidgid user launch_desktop_apps &
exec seguidgid user Xvnc..... 2>&1

launch_desktop_apps has a "pause 8" giving 8 seconds
before the apps are launched.  The apps are just your
basic xterm &, xclock &, xosview &, and twm &

the problem is the backgrounded bash script, launch_desktop_apps and its
children get killed within a few seconds.  So logging in gives you an
empty desktop.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.