Commit e5655fd3 authored by ballen4705's avatar ballen4705
Browse files

Added example config file. Modified documentation and specfiles accordingly. ...

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
parent 53d79a19
......@@ -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."
......
......@@ -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 $
# /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
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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment