-
-
Save j4m355/9ccecf6378fc3910d9c8 to your computer and use it in GitHub Desktop.
xcfb daemon for jenkins on FreeBSD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# $FreeBSD$ | |
# | |
# PROVIDE: xcfbd | |
# REQUIRE: DAEMON | |
# BEFORE: LOGIN | |
# KEYWORD: shutdown | |
# requires x11-servers/xorg-vfbserver to be installed | |
. /etc/rc.subr | |
: ${xvfbd_enable="NO"} | |
: ${xvfbd_resolution="1024x768x16"} | |
: ${xvfbd_screen="0"} | |
: ${xvfbd_display="99"} | |
: ${xvfbd_user="jenkins"} | |
: ${xvfbd_group="jenkins"} | |
name="xvfbd" | |
rcvar=xvfbd_enable | |
load_rc_config $name | |
pidfile="/var/tmp/$name.pid" | |
command="/usr/sbin/daemon" | |
procname="/usr/local/bin/Xvfb" | |
command_args="-f -p ${pidfile} ${procname} :${xvfbd_display} -ac -screen ${xvfbd_screen} ${xvfbd_resolution}" | |
run_rc_command "$1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment