On 25 Mar 2012 at 8:48, DRC wrote:

Copies to:              "[email protected]" 
<[email protected]>
From:                   DRC <[email protected]>
Subject:                Re: [Tigervnc-users] vncserver not starting after a 
bad restart.
Date sent:              Sun, 25 Mar 2012 08:48:03 -0500
To:                     "Michael D. Setzer II" 
<[email protected]>

> 
> Running 
> 
>  vncserver -kill :79
> 
> should get rid of the file.

With prior versions of Fedora this was no problem, but not with the 
Fedora 16 using systemctl to setup the vnc. Where would one add 
this to automate the process of clearing the file?

Since one now creates a startup file as:
/etc/systemd/system/multi-user.target.wants/vncserver@:79.servic
e

Now that has the ExecStart and ExecStop the uses the vncserver 
%i 

That start and stop only has running the vncserver, so how would 
one add it to automatically remove the file before starting it, which 
now fails if it does exist?


> 
> On Mar 24, 2012, at 2:55 AM, "Michael D. Setzer II"
> <[email protected]> wrote:
> 
> > I've had the issue of the vncserver not starting after a bad restart
> > where the /tmp/.X11-unix/X79 file has not been deleted during the
> > shutdown (Usually a power outage). 
> > 
> > My current solution has been to have a script in cron.hourly that
> > checks if the status is running, and if not it deletes the
> > /tmp/.X11-unix/X79 file and then starts the service. 
> > 
> > Is there a better method to have it delete the file during the start
> > process? Not sure if something else is supose to delete this file if
> > it wasn't deleted during a normal shutdown.
> > 
> > Before I would have to manually ssh into the machines to delete the
> > file, and manually restart the service. (now systemctl). 
> > 
> > Fedora 16 by the way.
> > 
> > +----------------------------------------------------------+
> >  Michael D. Setzer II -  Computer Science Instructor      
> >  Guam Community College  Computer Center                  
> >  mailto:[email protected]                            
> >  mailto:[email protected]
> >  http://www.guam.net/home/mikes
> >  Guam - Where America's Day Begins                        
> >  G4L Disk Imaging Project maintainer 
> >  http://sourceforge.net/projects/g4l/
> > +----------------------------------------------------------+
> > 
> > http://setiathome.berkeley.edu (Original)
> > Number of Seti Units Returned:  19,471
> > Processing time:  32 years, 290 days, 12 hours, 58 minutes
> > (Total Hours: 287,489)
> > 
> > BOINC@HOME CREDITS
> > SETI        11969293.719299   |   EINSTEIN     7540627.629852
> > ROSETTA      4338248.975416   |   ABC         11870729.099396
> > 
> > 
> > --------------------------------------------------------------------
> > ---------- This SF email is sponsosred by: Try Windows Azure free
> > for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure
> > _______________________________________________ Tigervnc-users
> > mailing list [email protected]
> > https://lists.sourceforge.net/lists/listinfo/tigervnc-users


+----------------------------------------------------------+
  Michael D. Setzer II -  Computer Science Instructor      
  Guam Community College  Computer Center                  
  mailto:[email protected]                            
  mailto:[email protected]
  http://www.guam.net/home/mikes
  Guam - Where America's Day Begins                        
  G4L Disk Imaging Project maintainer 
  http://sourceforge.net/projects/g4l/
+----------------------------------------------------------+

http://setiathome.berkeley.edu (Original)
Number of Seti Units Returned:  19,471
Processing time:  32 years, 290 days, 12 hours, 58 minutes
(Total Hours: 287,489)

BOINC@HOME CREDITS
SETI        11969293.719299   |   EINSTEIN     7540627.629852
ROSETTA      4338248.975416   |   ABC         11889193.887520


------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Tigervnc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tigervnc-users

Reply via email to