On Fri, 7 Sep 2001, Burt Bicksler wrote: >Date: Fri, 07 Sep 2001 21:14:08 -0700 >From: Burt Bicksler <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Content-Type: text/plain; charset="us-ascii"; format=flowed >List-Id: General X Discussion <xpert.XFree86.Org> >Subject: How to auto restart X Server > >Hi, > >The application that I am working on needs to be able to initiate a change >that will only take effect when X is restarted. The user will launch an >application, or script, that will make the configuration change and then >terminate X, with X restarting to apply the configuration change. > >We have one mechanism that will work, but it is not elegant. > >So I need to work out a simple way to have X restart once it has >terminated, without any additional interaction from the user. Ideally this >should be able to run from within X. The first two parts, changing the >configuration and then Killing X, are easy. > >Could someone point me to some documentation that would offer some >suggestions on the best way to accomplish this task? Put a wrapper around startx that just automatically restarts the server when it exits. If you want it conditionalized, use a semaphore, and have the restart code in the wrapper check for the semaphore existance. ---------------------------------------------------------------------- Mike A. Harris Shipping/mailing address: OS Systems Engineer 190 Pittsburgh Ave., Sault Ste. Marie, XFree86 maintainer Ontario, Canada, P6C 5B3 Red Hat Inc. Phone: (705)949-2136 http://www.redhat.com ftp://people.redhat.com/mharris Red Hat XFree86 mailing list: [EMAIL PROTECTED] IRC: #redhat-xfree86 on irc.openprojects.org ---------------------------------------------------------------------- _______________________________________________ Xpert mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/xpert
