openbsd-ports/x11/x11vnc/pkg/x11vnc.rc
ajacoutot 1388d85bfb When using xdm(1), x11vnc is started before the display manager in which
case we don't know the auth file. Use the '-auth guess' option to enable
the x11vnc heuristic to find the correct file.
While here, remove -display :0 which is the default.

ok sthen@ (maintainer)
2011-09-19 21:33:42 +00:00

14 lines
258 B
Bash
Executable File

#!/bin/sh
#
# $OpenBSD: x11vnc.rc,v 1.9 2011/09/19 21:33:42 ajacoutot Exp $
daemon="${TRUEPREFIX}/bin/x11vnc"
daemon_flags="-localhost -logfile /var/log/x11vnc -ncache 0 -forever -loop100 -auth guess"
. /etc/rc.d/rc.subr
rc_bg=YES
rc_reload=NO
rc_cmd $1