From e5655fd38c8191a9a14b35949b8c3f8173697f35 Mon Sep 17 00:00:00 2001 From: ballen4705 <ballen4705@4ea69e1a-61f1-4043-bf83-b5c94c648137> Date: Sat, 26 Oct 2002 20:53:08 +0000 Subject: [PATCH] Added example config file. Modified documentation and specfiles accordingly. Makefile now installs /usr/share/doc/smartmontools-5.0 also. git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@146 4ea69e1a-61f1-4043-bf83-b5c94c648137 --- sm5/Makefile | 19 +++++++++++++------ sm5/smartd.8 | 17 ++++++++++++----- sm5/smartd.conf | 23 +++++++++++++++++++++++ sm5/smartmontools.spec | 6 +++--- 4 files changed, 51 insertions(+), 14 deletions(-) create mode 100644 sm5/smartd.conf diff --git a/sm5/Makefile b/sm5/Makefile index ada1cf38c..3b7f6c5ff 100644 --- a/sm5/Makefile +++ b/sm5/Makefile @@ -2,7 +2,7 @@ # # Home page: http://smartmontools.sourceforge.net # -# $Id: Makefile,v 1.23 2002/10/25 17:06:17 ballen4705 Exp $ +# $Id: Makefile,v 1.24 2002/10/26 20:53:08 ballen4705 Exp $ # # Copyright (C) 2002 Bruce Allen <smartmontools-support@lists.sourceforge.net> # @@ -33,7 +33,7 @@ CFLAGS = -fsigned-char -Wall -O2 releasefiles=atacmds.c atacmds.h ataprint.c ataprint.h CHANGELOG COPYING extern.h Makefile\ README scsicmds.c scsicmds.h scsiprint.c scsiprint.h smartctl.8 smartctl.c smartctl.h\ - smartd.8 smartd.c smartd.h smartd.initd TODO VERSION + smartd.8 smartd.c smartd.h smartd.initd TODO VERSION smartd.conf counter=$(shell cat VERSION) newcounter=$(shell ./add ) @@ -68,11 +68,18 @@ install: smartctl smartd smartctl.8 smartd.8 smartd.initd Makefile /bin/gzip -c smartd.8 > smartd.8.gz rm -f /usr/share/man/man8/smartctl.8 rm -f /usr/share/man/man8/smartd.8 - install -m 755 -o root -g root -D smartctl $(DESTDIR)/usr/sbin/smartctl - install -m 755 -o root -g root -D smartd $(DESTDIR)/usr/sbin/smartd + install -m 755 -o root -g root -D smartctl $(DESTDIR)/usr/sbin/smartctl + install -m 755 -o root -g root -D smartd $(DESTDIR)/usr/sbin/smartd + install -m 755 -o root -g root -D smartd.initd $(DESTDIR)/etc/rc.d/init.d/smartd install -m 644 -o root -g root -D smartctl.8.gz $(DESTDIR)/usr/share/man/man8/smartctl.8.gz - install -m 644 -o root -g root -D smartd.8.gz $(DESTDIR)/usr/share/man/man8/smartd.8.gz - install -m 755 -o root -g root -D smartd.initd $(DESTDIR)/etc/rc.d/init.d/smartd + install -m 644 -o root -g root -D smartd.8.gz $(DESTDIR)/usr/share/man/man8/smartd.8.gz + install -m 644 -o root -g root -D CHANGELOG $(DESTDIR)/usr/share/doc/smartmontools-5.0/CHANGELOG + install -m 644 -o root -g root -D COPYING $(DESTDIR)/usr/share/doc/smartmontools-5.0/COPYING + install -m 644 -o root -g root -D README $(DESTDIR)/usr/share/doc/smartmontools-5.0/README + install -m 644 -o root -g root -D TODO $(DESTDIR)/usr/share/doc/smartmontools-5.0/TODO + install -m 644 -o root -g root -D VERSION $(DESTDIR)/usr/share/doc/smartmontools-5.0/VERSION + install -m 644 -o root -g root -D smartd.conf $(DESTDIR)/usr/share/doc/smartmontools-5.0/smartd.conf + @echo -e "\nTo manually start smartd on bootup, run /etc/rc.d/init.d/smartd start" @echo "To Automatically start smartd on bootup, run /sbin/chkconfig --add smartd" @echo "Smartd can now use a configuration file /etc/smartd.conf. Please read man 8 smartd." diff --git a/sm5/smartd.8 b/sm5/smartd.8 index bb01ef34a..6c0f06385 100644 --- a/sm5/smartd.8 +++ b/sm5/smartd.8 @@ -13,7 +13,7 @@ \# at the Concurrent Systems Laboratory (now part of the Storage Systems \# Research Center), Jack Baskin School of Engineering, University of \# California, Santa Cruz. http://ssrc.soe.ucsc.edu/ -.TH SMARTD 8 "$Date: 2002/10/25 17:19:26 $" "smartmontools-5.0" +.TH SMARTD 8 "$Date: 2002/10/26 20:53:08 $" "smartmontools-5.0" .SH NAME smartd \- S.M.A.R.T. Daemon .SH SYNOPSIS @@ -69,8 +69,8 @@ OPTIONS .TP .B V Version: Prints license, copyright, and CVS version information onto -STDOUT or into the SYSLOG log (normally /var/log/messages) and then -exits. Please include this information if you are reporting bugs. +STDOUT and then exits. Please include this information if you are +reporting bugs. .TP .B X eXamine: Runs smartd in "debug" mode. In this mode, it does not fork and @@ -81,10 +81,12 @@ displays status information to STDOUT. .B smartd .fi -runs the daemon in forked mode. This is the normal way to run +Runs the daemon in forked mode. This is the normal way to run .B smartd. .fi +Entries are logged to +.B /var/log/messages. .fi Note that smartmontools provides a start-up script in @@ -140,6 +142,11 @@ Here is a sample configuration file: .B /dev/sda .fi +If +.B smartmontools +was properly installed on your system, you should be able to find a sample configuration file in +.B /usr/share/doc/smartmontools-5.0 + .SH NOTES .B smartd will make log entries (at loglevel INFO) if SMART attribute values have changed, @@ -235,4 +242,4 @@ Please let us know if there is an on\-line source for this document. .SH CVS ID OF THIS PAGE: -$Id: smartd.8,v 1.12 2002/10/25 17:19:26 ballen4705 Exp $ +$Id: smartd.8,v 1.13 2002/10/26 20:53:08 ballen4705 Exp $ diff --git a/sm5/smartd.conf b/sm5/smartd.conf new file mode 100644 index 000000000..c4afbef0c --- /dev/null +++ b/sm5/smartd.conf @@ -0,0 +1,23 @@ +# /etc/smartd.conf + +# Sample configuration file for smartd. See man 8 smartd. +# Home page is: http://smartmontools.sourceforge.net + +# The file gives a list of devices to monitor using smartd with one +# device per line. Since lines starting with a hash (#) are ignored, as are +# blanks and tabs, this file only contains a single entry, for /dev/hda + +# You can usually identify which hard disks are on your system by looking +# in /proc/ide and in /proc/scsi + +# First (primary) ATA/IDE hard disk +/dev/hda + +# Other ATA/IDE hard disks +# /dev/hdb +# /dev/hdc +# /dev/hdd + +# First two SCSI disks +# /dev/sda +# /dev/sdb diff --git a/sm5/smartmontools.spec b/sm5/smartmontools.spec index dc0303aaa..4d34970e2 100644 --- a/sm5/smartmontools.spec +++ b/sm5/smartmontools.spec @@ -1,4 +1,4 @@ -Release: 16 +Release: 17 Summary: SMARTmontools - for monitoring S.M.A.R.T. disks and devices Name: smartmontools Version: 5.0 @@ -18,7 +18,7 @@ Packager: Bruce Allen <smartmontools-support@lists.sourceforge.net> # http://telia.dl.sourceforge.net/sourceforge/smartmontools/smartmontools-%{version}-%{release}.tar.gz # CVS ID of this file is: -# $Id: smartmontools.spec,v 1.27 2002/10/25 17:19:26 ballen4705 Exp $ +# $Id: smartmontools.spec,v 1.28 2002/10/26 20:53:08 ballen4705 Exp $ # Copyright (C) 2002 Bruce Allen <smartmontools-support@lists.sourceforge.net> # Home page: http://smartmontools.sourceforge.net @@ -78,7 +78,7 @@ make DESTDIR=$RPM_BUILD_ROOT install /etc/rc.d/init.d/smartd %doc %attr(644,root,root) /usr/share/man/man8/smartctl.8.gz %doc %attr(644,root,root) /usr/share/man/man8/smartd.8.gz -%doc CHANGELOG COPYING TODO README VERSION +%doc CHANGELOG COPYING TODO README VERSION smartd.conf %clean rm -rf $RPM_BUILD_ROOT -- GitLab