openbsd-ports/x11/x11vnc/pkg/x11vnc.rc
ajacoutot ae70c849c2 Make use of rcexec.
While here, force postgresql to quit in rc_stop, ok pea@
2011-01-05 16:05:54 +00:00

17 lines
364 B
Bash
Executable File

#!/bin/sh
#
# $OpenBSD: x11vnc.rc,v 1.6 2011/01/05 16:05:54 ajacoutot Exp $
daemon="${TRUEPREFIX}/bin/x11vnc"
daemon_flags="-localhost -logfile /var/log/x11vnc -ncache 0 -display :0 -forever -loop100 -auth /etc/X11/xdm/authdir/authfiles/A:0-*"
. /etc/rc.d/rc.subr
rc_reload=NO
rc_start() {
${rcexec} "${daemon} ${daemon_flags}" >/dev/null 2>&1 &
}
rc_cmd $1