1#!/bin/sh 2# 3 4# PROVIDE: xfs 5# REQUIRE: cleartmp ldconfig 6# BEFORE: LOGIN 7 8# The following variables are provided to control startup of X font server in 9# rc configuration file (eg /etc/rc.conf): 10# xfs_enable (bool): Set to "NO" by default. 11# Set it to "YES" to enable X font server 12# xfs_config (str): Set to "%%PREFIX%%/etc/X11/fs/config" by default. 13# Configuration file for X font server. 14# 15# Please see xfs(1), rc.conf(5) and rc(8) for further details. 16 17. /etc/rc.subr 18 19name="xfs" 20rcvar=xfs_enable 21 22# Set defaults 23[ -z "$xfs_enable" ] && xfs_enable="NO" 24[ -z "$xfs_config" ] && xfs_config="%%PREFIX%%/etc/X11/fs/config" 25 26load_rc_config $name 27 28command="%%PREFIX%%/bin/${name}" 29command_args="-config ${xfs_config} -daemon ${xfs_user:+-user ${xfs_user}}" 30required_files="$xfs_config" 31extra_commands="reload" 32 33unset xfs_user 34 35run_rc_command "$1" 36