Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37850888
en ru br
Репозитории ALT
4.0: 7.3.0-alt1
3.0: 6.8.2-alt18
+updates:6.8.2-alt24
www.altlinux.org/Changes

Группа :: Система/X11
Пакет: xorg-x11

 Главная   Изменения   Спек   Патчи   Исходники   Загрузить   Gear   Bugs and FR  Repocop 

#!/bin/sh
#
# xfs: Starts/Stops the X Font Server
#
# chkconfig: 2345 44 10
# description: Starts and stops the X Font Server at boot time and shutdown.
#
# processname: xfs
# config: /etc/X11/fs/config

WITHOUT_RC_COMPAT=1

# Source function library.
. /etc/init.d/functions

SourceIfNotEmpty /etc/sysconfig/xfs

LOCKFILE=/var/lock/subsys/xfs
PIDFILE=/var/run/xfs.pid
RETVAL=0

start()
{
msg_starting $"X Font"
rm -rf /tmp/.font-unix
start_daemon --pidfile "$PIDFILE" --lockfile "$LOCKFILE" --no-announce \
--expect-user xfs -- xfs $ARGS
RETVAL=$?
return $RETVAL
}

stop()
{
msg_stopping $"X Font"
stop_daemon --pidfile "$PIDFILE" --lockfile "$LOCKFILE" --no-announce \
--expect-user xfs -- xfs
RETVAL=$?
return $RETVAL
}

restart()
{
stop
start
}

reload()
{
msg_reloading $"X Font"
stop_daemon --pidfile "$PIDFILE" --expect-user xfs -USR1 -- xfs
RETVAL=$?
return $RETVAL
}

# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
reload)
reload
;;
restart)
restart
;;
condstop)
if [ -e "$LOCKFILE" ]; then
stop
fi
;;
condrestart)
if [ -e "$LOCKFILE" ]; then
restart
fi
;;
condreload)
if [ -e "$LOCKFILE" ]; then
reload
fi
;;
status)
status --pidfile "$PIDFILE" --expect-user xfs -- xfs
RETVAL=$?
;;
*)
msg_usage "${0##*/} {start|stop|reload|restart|condstop|condrestart|condreload|status}"
RETVAL=1
esac

exit $RETVAL
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin