checkvnc: use netstat to detect running vncserver
PATCH 1/1 checkvnc: use netstat to detect running vncserver
Using pidof Xvnc isn't sufficient because on debian-based distros the vncserver script will start Xtightvnc.
Instead switch back to using netstat for the VNC tcp socket to detect a running vncserver.
[YOCTO #10257]
Signed-off-by Joshua Lock <[email protected]>
--- bin/checkvnc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
bin/checkvnc +1 -1
@@ -2,7 +2,7 @@ # # check if vnc server is running, and if not, cleanup and restart # -pid=$(pidof Xvnc) +netstat -tnl | grep :5901 > /dev/null if [ $? != 0 ]; then echo "Xvnc not running, attempting restart" vncserver -kill :1
Signature · 1 line
2.7.4