FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 02-21-2012, 08:57 PM
"Michael D. Setzer II"
 
Default Issue with vncserver not starting?

I've fount that the vncserver doesn't start correctly after a power
outage or non-normal shutdown.* It appears that file in the
/tmp/.X11-unix directory is left after the reboot, and causes the
startup to fail.



My solution at the moment is to have a script in cron.hourly that
checks if it is running, and it not it removes the file, and restarts
the service.



Example using port 88 (5988)
==========
run=`systemctl status vncserver@:88.service | grep running | cut
-b 20-26`
if [ -z "$run" ] ; then
** rm /tmp/.X11-unix/X88
** systemctl start vncserver@:88.service
fi
==========



Should these files be removed automatically on a restart?
Is it a vncserver issue or a system issue or how things are
suppose to work?



Thanks.



**


--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 
Old 02-21-2012, 10:32 PM
Ed Greshko
 
Default Issue with vncserver not starting?

On 02/22/2012 05:57 AM, Michael D. Setzer II wrote:
> I've fount that the vncserver doesn't start correctly after a power
> outage or non-normal shutdown. It appears that file in the
> /tmp/.X11-unix directory is left after the reboot, and causes the
> startup to fail.
>
> My solution at the moment is to have a script in cron.hourly that
> checks if it is running, and it not it removes the file, and restarts
> the service.
>
> Example using port 88 (5988)
> ==========
> run=`systemctl status vncserver@:88.service | grep running | cut -b 20-26`
> if [ -z "$run" ] ; then
> rm /tmp/.X11-unix/X88
> systemctl start vncserver@:88.service
> fi
> ==========
>
> Should these files be removed automatically on a restart?
> Is it a vncserver issue or a system issue or how things are suppose to
> work?
>
>

Sounds like a vncserver issue. It should be able to determine, on
startup, that files have been left "orphaned" when a crash has occurred
and clean them up. IMO, you should check to see if a bugzilla exits and
if not file one.

--
Do not condemn the judgment of another because it differs from your own.
You may both be wrong. -- Dandemis
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 
Old 02-22-2012, 06:07 PM
James Wilkinson
 
Default Issue with vncserver not starting?

Michael D. Setzer II wrote:
> I've fount that the vncserver doesn't start correctly after a power
> outage or non-normal shutdown. It appears that file in the
> /tmp/.X11-unix directory is left after the reboot, and causes the
> startup to fail.
>
> My solution at the moment is to have a script in cron.hourly that
> checks if it is running, and it not it removes the file, and restarts
> the service.

An alternative is to put a line like
none /tmp tmpfs nodev,noexec 0 0
into /etc/fstab. This will have the effect of automatically clearing out
/tmp every boot.

What it actually does is turn /tmp into a tmpfs mount. If you have
plenty of RAM free, then it will hold the contents of /tmp *just* in
memory. If you have almost all your RAM being used for programs and
caching (the normal state on a computer that’s been running a while),
the kernel may choose to reclaim some of the memory that’s being used
for the contents of /tmp, using the same algorithms as normal. It will
write the contents to swap space.

Obviously, if you’re used to putting multi-gigabyte files in /tmp,
you’ll need to either start using /var/tmp or making sure you have
plenty of swap.

James.

--
E-mail: james@ | [Alan] finally installed his cuckoo clock on the wall.
aprilcottage.co.uk | For some reason this involved falling over in the dark in
| the garden, but I haven't dared ask about that yet. I
| don't -think- he was trying to catch a cuckoo to put
| inside it, but you never know. -- Telsa Gwynne's Diary
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 

Thread Tools




All times are GMT. The time now is 05:33 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org