summaryrefslogtreecommitdiff
blob: f1f1e8cc4e7249e452734f8382c9378710da1057 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/sbin/runscript
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/x11-base/xfree/files/4.2.0-r8/xfs.start,v 1.1 2002/03/14 23:52:57 azarah Exp $

depend() {
	use logger
}

start() {
	ebegin "Starting X Font Server"
	if [ "`grep xfs /etc/passwd`" ] ; then
		start-stop-daemon --start --quiet --exec /usr/X11R6/bin/xfs \
			-- -port -1 -daemon -config /etc/X11/fs/config \
				-droppriv -user xfs 1>&2
	else
		start-stop-daemon --start --quiet --exec /usr/X11R6/bin/xfs \
			-- -port -1 -daemon -config /etc/X11/fs/config 1>&2
	fi
	eend $?
}

stop() {
	ebegin "Stopping X Font Server"
	start-stop-daemon --stop --quiet --exec /usr/X11R6/bin/xfs 1>&2
	rm -rf /tmp/.font-unix
	eend $?
}