[sisyphus] smartmontools-5.1.10-alt1 wanted
Sergey Vlasov
=?iso-8859-1?q?vsu_=CE=C1_altlinux=2Eru?=
Пн Ноя 10 10:54:23 MSK 2003
On Mon, Nov 10, 2003 at 09:17:26AM +0300, Grigory Batalov wrote:
> Разыскивается пакет smartmontools версии 5.1.10-alt1
> или хотя бы инит-скрипты из него.
Ну вот, началось :)
Так и придётся в новой версии старый скрипт положить рядом в src.rpm.
----------- следующая часть -----------
#! /bin/sh
#
# smartd Start/Stop the smartd daemon.
#
# chkconfig: 2345 40 60
# description: Self Monitoring and Reporting Technology (S.M.A.R.T.) Daemon \
# monitors the reliability of ATA and SCSI hard drives.
# processname: smartd
# config: /etc/smartd.conf
# pidfile: /var/run/smartd.pid
# Source function library
. /etc/init.d/functions
# Get config.
SourceIfNotEmpty /etc/sysconfig/smartd
SMARTD=/usr/sbin/smartd
LOCKFILE=/var/lock/subsys/smartd
PIDFILE=/var/run/smartd.pid
RETVAL=0
start()
{
echo -n "Starting smartd: "
daemon $SMARTD "-p $PIDFILE $EXTRAOPTIONS"
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch "$LOCKFILE"
return $RETVAL
}
stop()
{
echo -n "Stopping smartd: "
killproc smartd
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && rm -f "$LOCKFILE"
return $RETVAL
}
restart()
{
stop
start
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload)
restart
;;
condstop)
if [ -e "$LOCKFILE" ]; then
stop
fi
;;
condrestart)
if [ -e "$LOCKFILE" ]; then
restart
fi
;;
status)
status smartd
RETVAL=$?
;;
*)
echo "Usage: ${0##*/} {start|stop|restart|reload|condstop|condrestart|status}"
RETVAL=1
esac
exit $RETVAL
----------- следующая часть -----------
Было удалено вложение не в текстовом формате...
Имя : =?iso-8859-1?q?=CF=D4=D3=D5=D4=D3=D4=D7=D5=C5=D4?=
Тип : application/pgp-signature
Размер : 189 байтов
Описание: =?iso-8859-1?q?=CF=D4=D3=D5=D4=D3=D4=D7=D5=C5=D4?=
Url : <http://lists.altlinux.org/pipermail/sisyphus/attachments/20031110/04eae487/attachment-0009.bin>
Подробная информация о списке рассылки Sisyphus