ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Sergey Vlasov <vsu@altlinux.ru>
To: sisyphus@altlinux.ru
Subject: Re: [sisyphus] smartmontools-5.1.10-alt1 wanted
Date: Mon, 10 Nov 2003 10:54:23 +0300
Message-ID: <20031110075423.GA1694@sirius.home> (raw)
In-Reply-To: <20031110091726.68eb23cb.bga-no-spam@kovgok.ru>


[-- Attachment #1.1: Type: text/plain, Size: 252 bytes --]

On Mon, Nov 10, 2003 at 09:17:26AM +0300, Grigory Batalov wrote:
>    Разыскивается пакет smartmontools версии 5.1.10-alt1
>  или хотя бы инит-скрипты из него.

Ну вот, началось :)

Так и придётся в новой версии старый скрипт положить рядом в src.rpm.

[-- Attachment #1.2: smartd --]
[-- Type: text/plain, Size: 1253 bytes --]

#! /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

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

      reply	other threads:[~2003-11-10  7:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-10  6:17 Grigory Batalov
2003-11-10  7:54 ` Sergey Vlasov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20031110075423.GA1694@sirius.home \
    --to=vsu@altlinux.ru \
    --cc=sisyphus@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git