Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 321128 Details for
Bug 431102
x11-misc/x11vnc-0.9.13 - Add init scripts
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
x11vnc.init.d
x11vnc.init.d (text/plain), 1.56 KB, created by
Sal Gonzalez
on 2012-08-12 16:08:29 UTC
(
hide
)
Description:
x11vnc.init.d
Filename:
MIME Type:
Creator:
Sal Gonzalez
Created:
2012-08-12 16:08:29 UTC
Size:
1.56 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2011 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 > >description="The x11vnc daemon init script" > >depend() { > need net > need xdm >} > >checkconfig() { > > # Set Defaults > X11VNC_RFBAUTH=${X11VNC_RFBAUTH:-/etc/x11vnc.pass} > X11VNC_RFBPORT=${X11VNC_RFBPORT:-5900} > X11VNC_DISPLAY=${X11VNC_DISPLAY:-:0} > X11VNC_LOG=${X11VNC_LOG:-/var/log/x11vnc} > > X11VNC_AUTH="/var/run/x11vnc-${X11VNC_DISPLAY}" > > if [ -n "${X11VNC_AUTOPORT}" ]; then > X11VNC_PORT="" > fi > > if [ ! -f "${X11VNC_RFBAUTH}" -o ! -s "${X11VNC_RFBAUTH}" ]; then > eerror "VNC Password not set, please set one by running: \`x11vnc -storepasswd ${X11VNC_RFBAUTH}\`" > return 1 > fi > checkpath -q -f -m 0600 -o root:root "${X11VNC_RFBAUTH}" > > if ! type xauth > /dev/null 2>&1 || > ! xauth -f /root/.Xauthority extract - "${X11VNC_DISPLAY}" > "${X11VNC_AUTH}" 2>/dev/null || > [ ! -s "${X11VNC_AUTH}" ]; then > eerror "Unable to extract X-Authority data" > return 1 > fi > > if [ ! -f "${X11VNC_AUTH}" ]; then > eerror "Specified X-Authority file '${X11VNC_AUTH}' not found!" > return 1 > fi >} > >start() { > checkconfig || return 1 > > ebegin "Starting ${SVCNAME}" > start-stop-daemon --start \ > --exec /usr/bin/x11vnc -- \ > -auth ${X11VNC_AUTH} \ > -rfbauth ${X11VNC_RFBAUTH} \ > ${X11VNC_RFBPORT:+-rfbport} ${X11VNC_RFBPORT} \ > ${X11VNC_AUTOPORT:+-autoport} ${X11VNC_AUTOPORT} \ > -display ${X11VNC_DISPLAY} \ > -o ${X11VNC_LOG} \ > -bg -forever \ > ${X11VNC_OPTS} > eend $? >} > >stop() { > ebegin "Stopping ${SVCNAME}" > start-stop-daemon --stop /usr/bin/x11vnc > eend $? >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 431102
:
321126
|
321128
|
321130
|
321132
|
363272
|
363274