wok-next rev 704
x11vnc: vm exit support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri May 02 09:52:38 2008 +0000 (2008-05-02) |
parents | c01baa62a795 |
children | 8772e03e752a |
files | x11vnc/receipt x11vnc/stuff/x11vnc |
line diff
1.1 --- a/x11vnc/receipt Fri May 02 08:25:48 2008 +0000 1.2 +++ b/x11vnc/receipt Fri May 02 09:52:38 2008 +0000 1.3 @@ -34,7 +34,7 @@ 1.4 { 1.5 grep -q "^X11VNC" $1/etc/daemons.conf || cat >>$1/etc/daemons.conf <<EOT 1.6 # VNC server options. 1.7 -X11VNC_OPTIONS="-rfbauth /etc/vnc.secret -forever -bg" 1.8 +X11VNC_OPTIONS="-rfbauth /etc/vnc.secret -loop" 1.9 1.10 EOT 1.11 [ -f $1/etc/vnc.secret ] || echo -en 'p\x05\xE3\x8B\x81\xB0\xB2\x1B' \
2.1 --- a/x11vnc/stuff/x11vnc Fri May 02 08:25:48 2008 +0000 2.2 +++ b/x11vnc/stuff/x11vnc Fri May 02 09:52:38 2008 +0000 2.3 @@ -18,7 +18,7 @@ 2.4 exit 1 2.5 fi 2.6 echo -n "Starting $DESC: $NAME... " 2.7 - $DAEMON $OPTIONS 2.8 + $DAEMON $OPTIONS & 2.9 status 2.10 ;; 2.11 stop) 2.12 @@ -38,7 +38,7 @@ 2.13 echo -n "Restarting $DESC: $NAME... " 2.14 killall $(basename $DAEMON) 2.15 sleep 2 2.16 - $DAEMON $OPTIONS 2.17 + $DAEMON $OPTIONS & 2.18 status 2.19 ;; 2.20 *)