Репозиторий Sisyphus
Последнее обновление: 28 февраля 2021 | Пакетов: 17839 | Посещений: 20362553
en ru br
Репозитории ALT
S:1.5.0.2-alt2
5.1: 1.5.0-alt1.M51.1
4.1: 1.2.0pre2-alt0.M41.1
www.altlinux.org/Changes

Группа :: Звук
Пакет: voiceman

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

#! /bin/sh
#
# /etc/init.d/voiceman Start/Stop the VOICEMAN daemon.
# chkconfig: 2345 35 85
# description: Utility for processing speech output from installed applications.

. /etc/init.d/functions

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

start()
{
start_daemon --pidfile "$PIDFILE" --lockfile "$LOCKFILE" --expect-user root -- voicemand --pidfile "$PIDFILE" -d $EXTRAOPTIONS
RETVAL=$?
return $RETVAL
}

stop()
{
stop_daemon --pidfile "$PIDFILE" --lockfile "$LOCKFILE" --expect-user root -- voicemand "$PIDFILE"
RETVAL=$?
return $RETVAL
}

restart()
{
stop
start
}

reload()
{
/usr/bin/voiceman-reload "$PIDFILE"
RETVAL=$?
return $RETVAL
}

# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
reload)
reload
;;
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 root voicemand
RETVAL=$?
;;
test)
voiceman-test
RETVAL=$?
;;
config)
/usr/bin/voicemand --test
;;
*)
msg_usage "${0##*/} {start|stop|restart|reload|condstop|condrestart|condreload|status|test|config}"
RETVAL=1
esac

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