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