SOURCES: x11vnc-x11vncd (NEW), x11vnc-x11vncd.init (NEW), x11vnc-x...
pascalek
pascalek at pld-linux.org
Tue Jan 22 10:22:17 CET 2008
Author: pascalek Date: Tue Jan 22 09:22:17 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- initial revision
---- Files affected:
SOURCES:
x11vnc-x11vncd (NONE -> 1.1) (NEW), x11vnc-x11vncd.init (NONE -> 1.1) (NEW), x11vnc-x11vncd_passwd (NONE -> 1.1) (NEW), x11vnc-x11vncd.sysconfig (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/x11vnc-x11vncd
diff -u /dev/null SOURCES/x11vnc-x11vncd:1.1
--- /dev/null Tue Jan 22 10:22:17 2008
+++ SOURCES/x11vnc-x11vncd Tue Jan 22 10:22:11 2008
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+if [ -f /etc/sysconfig/x11vncd ]; then
+ . /etc/sysconfig/x11vncd
+fi
+
+while(true)
+do
+ /usr/bin/x11vnc $X11VNC_OPTIONS 1>/dev/null 2>&1
+ sleep 1s
+done
================================================================
Index: SOURCES/x11vnc-x11vncd.init
diff -u /dev/null SOURCES/x11vnc-x11vncd.init:1.1
--- /dev/null Tue Jan 22 10:22:17 2008
+++ SOURCES/x11vnc-x11vncd.init Tue Jan 22 10:22:11 2008
@@ -0,0 +1,54 @@
+#!/bin/sh
+#
+# gdm: Starts the VNC server
+#
+# Version: @(#) /etc/rc.d/init.d/x11vncd 0.1
+#
+# chkconfig: 5 96 04
+# description: Starts and stops the VNC server
+#
+# config: /etc/sysconfig/x11vncd
+
+. /etc/rc.d/init.d/functions
+
+RETVAL=0
+# See how we were called.
+case "$1" in
+ start)
+ # Check if the service is already running?
+ if [ ! -f /var/lock/subsys/x11vncd ]; then
+ msg_starting "VNC Server"
+ daemon --fork /usr/sbin/x11vncd
+ RETVAL=$?
+ [ $RETVAL -eq 0 ] && touch /var/lock/subsys/x11vncd
+ else
+ msg_already_running "VNC Server"
+ fi
+ ;;
+ stop)
+ if [ -f /var/lock/subsys/x11vncd ]; then
+ msg_stopping "VNC Server"
+ killproc x11vncd
+ msg_stopping "x11vnc process"
+ killproc x11vnc
+ rm -f /var/lock/subsys/x11vncd
+ else
+ msg_not_running "VNC Server"
+ fi
+ ;;
+ status)
+ status x11vncd
+ status x11vnc
+ exit $?
+ ;;
+ restart|force-reload)
+ $0 stop
+ $0 start
+ exit $?
+ ;;
+ *)
+ msg_usage "$0 {start|stop|restart|force-reload|status}"
+ exit 3
+esac
+
+exit $RETVAL
================================================================
Index: SOURCES/x11vnc-x11vncd_passwd
diff -u /dev/null SOURCES/x11vnc-x11vncd_passwd:1.1
--- /dev/null Tue Jan 22 10:22:17 2008
+++ SOURCES/x11vnc-x11vncd_passwd Tue Jan 22 10:22:11 2008
@@ -0,0 +1 @@
+topsecredpasswordforyourvnc
================================================================
Index: SOURCES/x11vnc-x11vncd.sysconfig
diff -u /dev/null SOURCES/x11vnc-x11vncd.sysconfig:1.1
--- /dev/null Tue Jan 22 10:22:17 2008
+++ SOURCES/x11vnc-x11vncd.sysconfig Tue Jan 22 10:22:12 2008
@@ -0,0 +1,4 @@
+# Customized setings for x11vnc
+
+# Default options assume you use gdm
+X11VNC_OPTIONS="-passwdfile /etc/x11vncd_passwd -auth /var/lib/gdm/:0.Xauth -display :0 -noncache"
================================================================
More information about the pld-cvs-commit
mailing list