LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Red Hat Enterprise (s390) 6.7 vncserver respawn (https://www.linuxquestions.org/questions/linux-newbie-8/red-hat-enterprise-s390-6-7-vncserver-respawn-4175564289/)

mikenash 01-18-2016 02:35 PM

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?

JockVSJock 01-18-2016 04:42 PM

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...

mikenash 01-20-2016 02:27 PM

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


All times are GMT -5. The time now is 03:02 AM.