From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 10 Nov 2003 10:54:23 +0300 From: Sergey Vlasov To: sisyphus@altlinux.ru Subject: Re: [sisyphus] smartmontools-5.1.10-alt1 wanted Message-ID: <20031110075423.GA1694@sirius.home> Mail-Followup-To: sisyphus@altlinux.ru References: <20031110091726.68eb23cb.bga-no-spam@kovgok.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="NDin8bjvE/0mNLFQ" Content-Disposition: inline In-Reply-To: <20031110091726.68eb23cb.bga-no-spam@kovgok.ru> X-BeenThere: sisyphus@altlinux.ru X-Mailman-Version: 2.1.3 Precedence: list Reply-To: sisyphus@altlinux.ru List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Nov 2003 07:54:44 -0000 Archived-At: List-Archive: --NDin8bjvE/0mNLFQ Content-Type: multipart/mixed; boundary="4Ckj6UjgE2iN1+kY" Content-Disposition: inline Content-Transfer-Encoding: 8bit --4Ckj6UjgE2iN1+kY Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit On Mon, Nov 10, 2003 at 09:17:26AM +0300, Grigory Batalov wrote: > Разыскивается пакет smartmontools версии 5.1.10-alt1 > или хотя бы инит-скрипты из него. Ну вот, началось :) Так и придётся в новой версии старый скрипт положить рядом в src.rpm. --4Ckj6UjgE2iN1+kY Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=smartd #! /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 --4Ckj6UjgE2iN1+kY-- --NDin8bjvE/0mNLFQ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQE/r0QuW82GfkQfsqIRAoGYAJ9p5ws/0uISPjk+wC/q0BQQmlH4UQCggOs4 2OyHpMgNjppntTXqkmxqYFY= =wCqP -----END PGP SIGNATURE----- --NDin8bjvE/0mNLFQ--