LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-18-2016, 03:35 PM   #1
mikenash
Member
 
Registered: Dec 2014
Posts: 79

Rep: Reputation: Disabled
Red Hat Enterprise (s390) 6.7 vncserver respawn


I would like the vncserver to restart after being stopped. I am trying to use "respawn" in /etc/inittab with entry: 1:2345:respawn:/etc/rc.d/init.d/vncserver. I also tried with the entry 1:2345:respawn:/usr/sbin/vncserver. Is this possible with respawn? Is there another technique that would work?
 
Old 01-18-2016, 05:42 PM   #2
JockVSJock
Senior Member
 
Registered: Jan 2004
Location: SATX
Distribution: RHEL/CentOS
Posts: 1,198
Blog Entries: 4

Rep: Reputation: 131Reputation: 131
I am curious about this too, so did a quick Google search and found this:

https://www.linuxquestions.org/quest...nittab-836399/

However I don't see any info under man init or man inittab for RHEL6.

Looking around on the search results, found this:

https://www.linuxquestions.org/quest...inutes-895759/

Code:
x:5:respawn:/usr/sbin/lxdm >& /dev/null
I don't have vncserver installed, otherwise I would test and post results...
 
Old 01-20-2016, 03:27 PM   #3
mikenash
Member
 
Registered: Dec 2014
Posts: 79

Original Poster
Rep: Reputation: Disabled
Tried another variation but this also failed.
Quote:
/etc/inittab 1:2345:respawn:/etc/rc.d/init.d/vncserver >/dev/null 2>&1
2:2345:respawn:/usr/bin/vncserver -geometry 800x600 -autokill >/dev/null 2>&1
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Red Hat releases upgrade to older Red Hat Enterprise Linux: RHEL 5.10 LXer Syndicated Linux News 0 10-02-2013 05:10 AM
LXer: Red Hat Announces General Availability of Next Minor Release of Red Hat Enterprise Linux 6 LXer Syndicated Linux News 0 02-22-2013 02:50 PM
LXer: Red Hat invites users to help create the next Red Hat Enterprise Linux LXer Syndicated Linux News 0 09-01-2011 03:30 AM
Project made in Red Hat Enterprise 4 need to be able to run on Red Hat Enterprise 3 Elin Linux - Software 1 07-13-2006 01:22 PM


All times are GMT -5. The time now is 07:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration