mirror of
https://git.proxmox.com/git/mirror_smartmontools-debian
synced 2025-07-27 11:53:09 +00:00
add debian subdir
This commit is contained in:
parent
832b75ede0
commit
20259a0807
10
debian/10mail
vendored
Normal file
10
debian/10mail
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
# Send mail if /usr/bin/mail exists or exit silently
|
||||
[ -x /usr/bin/mail ] || exit 0
|
||||
|
||||
input=$1
|
||||
shift
|
||||
|
||||
/usr/bin/mail "$@" < $input
|
||||
|
23
debian/NEWS
vendored
Normal file
23
debian/NEWS
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
smartmontools (5.33+5.34cvs20050802-3) unstable; urgency=low
|
||||
|
||||
As of this version smartd uses /dev/twa0-15 and /dev/twe0-15 instead of
|
||||
/dev/sd* to monitor 3ware raid controllers, please adjust /etc/smartd.conf
|
||||
accordingly.
|
||||
|
||||
-- Guido Guenther <agx@debian.org> Thu, 11 Aug 2005 10:54:18 +0200
|
||||
|
||||
smartmontools (5.30-6) unstable; urgency=low
|
||||
|
||||
The scripts for running automatic selftests via cron were removed. The
|
||||
functionality is now implemented in smartd itself via the "-s" option. Use
|
||||
"man 5 smartd.conf" for more details. You can safely delete
|
||||
/etc/cron.d/smartmontools.
|
||||
|
||||
-- Guido Guenther <agx@debian.org> Thu, 6 May 2004 09:03:01 +0200
|
||||
|
||||
smartmontools (5.1.16-1) unstable; urgency=low
|
||||
|
||||
experimental support for disks behind 3ware raid controller
|
||||
|
||||
-- Guido Guenther <agx@debian.org> Wed, 6 Aug 2003 22:38:11 +0200
|
||||
|
15
debian/README.Debian
vendored
Normal file
15
debian/README.Debian
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
smartmontools for Debian
|
||||
------------------------
|
||||
|
||||
To start smartd automatically on system startup set:
|
||||
start_smartd=yes
|
||||
in /etc/default/smartmontools. If you only want to enable S.M.A.R.T. for a
|
||||
device without running the daemon use the enable_smart variable.
|
||||
|
||||
Package Maintainers and users can put script to be run when smartd detects an
|
||||
error into /etc/smartmontools/run.d. The script will receive the errormessage
|
||||
on stdin. See /etc/smartmontools/run.d/10mail as an example.
|
||||
|
||||
Please read the file WARNINGS in this directory.
|
||||
|
||||
-- Guido Guenther <agx@debian.org>, Tue, 24 Mar 2003 19:15:00 +0000
|
280
debian/changelog
vendored
Normal file
280
debian/changelog
vendored
Normal file
@ -0,0 +1,280 @@
|
||||
smartmontools (5.33+5.34cvs20050802-6) experimental; urgency=low
|
||||
|
||||
* update cciss patch to also support smartd not only smartctl
|
||||
|
||||
-- Guido Guenther <agx@debian.org> Thu, 13 Apr 2006 09:34:39 +0200
|
||||
|
||||
smartmontools (5.33+5.34cvs20050802-5) experimental; urgency=low
|
||||
|
||||
* add (experimental) cciss patch by Praveen Chidambaram
|
||||
<bunchofmails@gmail.com>, with slight modfifications to apply and work
|
||||
with current CVS
|
||||
* Build depend on libcam-dev for kfreebsd-amd64 too (Closes: #361478)
|
||||
* Remove $Id$ from smartd.conf (Closes: #324703)
|
||||
|
||||
-- Guido Guenther <agx@debian.org> Mon, 10 Apr 2006 17:33:18 +0200
|
||||
|
||||
smartmontools (5.33+5.34cvs20050802-4) unstable; urgency=low
|
||||
|
||||
* avoid usage of cat in 10mail (Closes: #327338)
|
||||
* add patch by Aurelin Jano to build on kfreebsd (Closes: #327642)
|
||||
|
||||
-- Guido Guenther <agx@debian.org> Tue, 24 Jan 2006 09:56:28 +0100
|
||||
|
||||
smartmontools (5.33+5.34cvs20050802-3) unstable; urgency=low
|
||||
|
||||
* add note about 3ware raid controlers to NEWS.Debian (Closes: #322265)
|
||||
|
||||
-- Guido Guenther <agx@debian.org> Thu, 11 Aug 2005 11:04:56 +0200
|
||||
|
||||
smartmontools (5.33+5.34cvs20050802-2) unstable; urgency=low
|
||||
|
||||
* rules: make ./configure executable (Closes: #321060)
|
||||
* smartd.conf: add smartd-runner to the default DEVICESCAN directive
|
||||
* README.Debian: mention smartd-runner
|
||||
* control: remove debianutils, it's an essential package
|
||||
|
||||
-- Guido Guenther <agx@debian.org> Wed, 3 Aug 2005 11:32:53 +0200
|
||||
|
||||
smartmontools (5.33+5.34cvs20050802-1) unstable; urgency=low
|
||||
|
||||
* New CVS snapshot as of 2005-08-02 (Closes: #269051)
|
||||
|
||||
* added smartd-runner which runs scripts in /etc/smartmontools/run.d
|
||||
* added /etc/smartmontools/run.d/10mail to emulate smartd's -m option
|
||||
* add a comment on howto use this to /etc/smartd.conf
|
||||
* Many thanks for this go to Brian Sutherland <jinty@web.de>
|
||||
|
||||
-- Guido Guenther <agx@debian.org> Tue, 2 Aug 2005 20:58:47 +0200
|
||||
|
||||
smartmontools (5.33-1) experimental; urgency=low
|
||||
|
||||
* new upstream version
|
||||
* upload to experimental since we want 5.32 in sarge for now
|
||||
|
||||
-- Guido Guenther <agx@debian.org> Sat, 20 Nov 2004 19:52:39 +0100
|
||||
|
||||
smartmontools (5.32-2) unstable; urgency=medium
|
||||
|
||||
* urgency medium since the sarge version is unusable on arm
|
||||
* use __attribute__((packed)) instead of #pragma(packed) since the later
|
||||
causes alignment problems on arm - based on a patch by armcc@lycos.com,
|
||||
many thanks! (Closes: #278459)
|
||||
* simplify /usr/share/bug/smartmontools a bit (Closes: #262055)
|
||||
|
||||
-- Guido Guenther <agx@debian.org> Thu, 28 Oct 2004 09:20:57 +0200
|
||||
|
||||
smartmontools (5.32-1) unstable; urgency=low
|
||||
|
||||
* new upstream version
|
||||
|
||||
-- Guido Guenther <agx@debian.org> Mon, 19 Jul 2004 10:57:53 +0200
|
||||
|
||||
smartmontools (5.30-6) unstable; urgency=low
|
||||
|
||||
* be more verbose in /etc/init.d/smartmontools iff smartd has been disabled
|
||||
via /etc/default/smartmontools (Closes: #246615)
|
||||
* explain removal of cron selftests in NEWS.Debian (Closes: #247622)
|
||||
|
||||
-- Guido Guenther <agx@debian.org> Thu, 6 May 2004 09:05:40 +0200
|
||||
|
||||
smartmontools (5.30-5) unstable; urgency=low
|
||||
|
||||
* rm selftests from CVS, so they don't get picked up by cvs-buildpackage
|
||||
(Closes: #242580), sigh
|
||||
* thanks again to Jean-Luc Coulon and Bruce Allen for resolving #208964
|
||||
|
||||
-- Guido Guenther <agx@debian.org> Wed, 7 Apr 2004 19:07:58 +0200
|
||||
|
||||
smartmontools (5.30-4) unstable; urgency=low
|
||||
|
||||
* improve restart in init.d script so that smartd can shut down
|
||||
properly (Closes: #242344)
|
||||
* remove cron selftests at all, use smartd's -s option instead
|
||||
|
||||
-- Guido Guenther <agx@debian.org> Tue, 6 Apr 2004 12:18:52 +0200
|
||||
|
||||
smartmontools (5.30-3) unstable; urgency=low
|
||||
|
||||
* deprecated cron selftests, this is now better handled by smartd's "-s"
|
||||
option
|
||||
* check for existence of smartmontools-selftests in cron.d snippet
|
||||
* in accordance with upstream (who adopted our naming scheme) use smartd's
|
||||
compiled in default values in /etc/default/smartmontools
|
||||
|
||||
-- Guido Guenther <agx@debian.org> Sat, 27 Mar 2004 07:11:12 +0100
|
||||
|
||||
smartmontools (5.30-2) unstable; urgency=low
|
||||
|
||||
* clarify usage of enable_smart in (Closes: #239737)
|
||||
* add reload to /etc/init.d/smartmontools
|
||||
|
||||
-- Guido Guenther <agx@debian.org> Thu, 25 Mar 2004 14:43:33 +0100
|
||||
|
||||
smartmontools (5.30-1) unstable; urgency=low
|
||||
|
||||
* new upstream version (Closes: #238790)
|
||||
* logging severity fixed upstream (Closes: #234519)
|
||||
|
||||
-- Guido Guenther <agx@debian.org> Tue, 23 Mar 2004 00:40:25 +0100
|
||||
|
||||
smartmontools (5.26-5) unstable; urgency=low
|
||||
|
||||
* install /u/s/bug/smartmontools as reportbug helper
|
||||
* use install instead of cp/chmod
|
||||
* remove no longer needed debian/dirs
|
||||
|
||||
-- Guido Guenther <agx@debian.org> Wed, 11 Feb 2004 19:08:49 +0100
|
||||
|
||||
smartmontools (5.26-4) unstable; urgency=low
|
||||
|
||||
* remove sections not relevant on debian systems from smartd.8.in manpage
|
||||
* include /etc/smartd.conf again, thanks Wolfram Quester.
|
||||
* change smartd.conf to only use DEVICESCAN
|
||||
|
||||
-- Guido Guenther <agx@debian.org> Tue, 3 Feb 2004 15:25:32 +0100
|
||||
|
||||
smartmontools (5.26-3) unstable; urgency=low
|
||||
|
||||
* The "where did the chmod go" release
|
||||
* make sure selftests is executable (Closes: #223627)
|
||||
|
||||
-- Guido Guenther <agx@debian.org> Thu, 11 Dec 2003 12:33:56 +0100
|
||||
|
||||
smartmontools (5.26-2) unstable; urgency=low
|
||||
|
||||
* actually include /usr/share/smartmontools/selftests again
|
||||
|
||||
-- Guido Guenther <agx@debian.org> Tue, 9 Dec 2003 12:45:22 +0100
|
||||
|
||||
smartmontools (5.26-1) unstable; urgency=low
|
||||
|
||||
* new upstream version
|
||||
|
||||
-- Guido Guenther <agx@debian.org> Fri, 5 Dec 2003 22:12:33 +0100
|
||||
|
||||
smartmontools (5.1.18-3) unstable; urgency=low
|
||||
|
||||
* make sure /usr/share/smartmontools/selftests is executable
|
||||
|
||||
-- Guido Guenther <agx@debian.org> Wed, 12 Nov 2003 01:08:20 +0100
|
||||
|
||||
smartmontools (5.1.18-2) unstable; urgency=low
|
||||
|
||||
* Conflict: ucsc-smartsuite (Closes: #218573)
|
||||
* introduce run_cron_selftests in /etc/defaults/smartmontools which
|
||||
contains a list of devices to run regular selftests on via cron
|
||||
|
||||
-- Guido Guenther <agx@debian.org> Mon, 3 Nov 2003 22:36:34 +0100
|
||||
|
||||
smartmontools (5.1.18-1) unstable; urgency=low
|
||||
|
||||
* new upstream version
|
||||
* bump Standards-Version to 3.6.1
|
||||
|
||||
-- Guido Guenther <agx@debian.org> Thu, 28 Aug 2003 21:54:06 +0200
|
||||
|
||||
smartmontools (5.1.16-1) unstable; urgency=low
|
||||
|
||||
* new upstream version
|
||||
- log normal exit at LOG_INFO, not LOG_CRIT (Closes: #201173)
|
||||
- allows to acces disks behind 3ware RAID controllers, maybe
|
||||
closes: #188515, the submitter never specified any details.
|
||||
* bump Standards-Version to 3.6.0
|
||||
* add NEWS.Debian file
|
||||
|
||||
-- Guido Guenther <agx@debian.org> Thu, 7 Aug 2003 13:54:26 +0200
|
||||
|
||||
smartmontools (5.1.14-1) unstable; urgency=low
|
||||
|
||||
* new upstream version
|
||||
* fix the regexp in smartmontools-cron matching the first disk only
|
||||
* bump Standards-Version to 3.5.10
|
||||
|
||||
-- Guido Guenther <agx@debian.org> Sun, 22 Jun 2003 14:07:11 +0200
|
||||
|
||||
smartmontools (5.1.11-1) unstable; urgency=low
|
||||
|
||||
* new upstream version (Closes: #191831)
|
||||
* rework debian/rules since we can now pass most of the
|
||||
needed options to the Makefile
|
||||
|
||||
-- Guido Guenther <agx@debian.org> Wed, 7 May 2003 21:43:53 +0200
|
||||
|
||||
smartmontools (5.1.10-1) unstable; urgency=low
|
||||
|
||||
* new upstream version (Closes: #186213)
|
||||
* add ${misc:Depends} to control file
|
||||
* bump debhelper Build-Depends to >=4
|
||||
* bump Standards-Version to 3.5.9
|
||||
* smartd now writes a pidfile, use it in the init script
|
||||
* add smartd_opts to /etc/defaults/smartmontools
|
||||
* add cron.daily example
|
||||
|
||||
-- Guido Guenther <agx@debian.org> Mon, 21 Apr 2003 19:32:46 +0200
|
||||
|
||||
smartmontools (5.1.9-3) unstable; urgency=low
|
||||
|
||||
* init.d script prints more sensible error messages (Closes: #187697)
|
||||
|
||||
-- Guido Guenther <agx@debian.org> Sat, 5 Apr 2003 19:17:43 +0200
|
||||
|
||||
smartmontools (5.1.9-2) unstable; urgency=low
|
||||
|
||||
* /etc/init.d/smartmontools cleanup:
|
||||
- Don't fail when the package was removed but not purged
|
||||
(Closes: #186091).
|
||||
- sleep 1 second on restart
|
||||
- fix wrong scriptname in usage output
|
||||
* install smartd.conf to /etc
|
||||
* adjust README.Debian
|
||||
* don't install CHANGELOG, dh_installchangelogs handles this for us
|
||||
|
||||
-- Guido Guenther <agx@debian.org> Mon, 24 Mar 2003 19:24:53 +0100
|
||||
|
||||
smartmontools (5.1.9-1) unstable; urgency=low
|
||||
|
||||
* new upstream version (Closes: #178151)
|
||||
* Recommends: mailx | mailutils (Closes: #184890)
|
||||
* add '-e' to shebang line of init script
|
||||
* use debian/compat not DH_COMPAT
|
||||
|
||||
-- Guido Guenther <agx@debian.org> Sat, 15 Mar 2003 12:40:04 +0100
|
||||
|
||||
smartmontools (5.1.4-2) unstable; urgency=low
|
||||
|
||||
* remove 'function' bashism from initscript (Closes: #178411),
|
||||
Thanks Martin Waitz.
|
||||
|
||||
-- Guido Guenther <agx@debian.org> Sun, 26 Jan 2003 00:52:49 +0100
|
||||
|
||||
smartmontools (5.1.4-1) unstable; urgency=low
|
||||
|
||||
* new upstream version
|
||||
* turn on S.M.A.R.T. for devices listed in enable_smart
|
||||
* honor DEB_BUILD_OPTIONS
|
||||
* bump standards version to 3.5.8
|
||||
|
||||
-- Guido Guenther <agx@debian.org> Sat, 25 Jan 2003 19:40:14 +0100
|
||||
|
||||
smartmontools (5.1.1-3) unstable; urgency=low
|
||||
|
||||
* conflict with smartsuite (Closes: #178010)
|
||||
* remove superflous whitespaces in description
|
||||
* remove usr/bin from debian/dirs
|
||||
|
||||
-- Guido Guenther <agx@debian.org> Fri, 24 Jan 2003 00:51:26 +0100
|
||||
|
||||
smartmontools (5.1.1-2) unstable; urgency=low
|
||||
|
||||
* only start smartd if start_smartd=yes in /etc/default/smartmontools.
|
||||
* initial upload (Closes: #174828).
|
||||
|
||||
-- Guido Guenther <agx@debian.org> Fri, 17 Jan 2003 23:04:50 +0000
|
||||
|
||||
smartmontools (5.1.1-1) unstable; urgency=low
|
||||
|
||||
* Initial Release.
|
||||
|
||||
-- Guido Guenther <agx@debian.org> Tue, 14 Jan 2003 12:58:00 +0000
|
||||
|
1
debian/compat
vendored
Normal file
1
debian/compat
vendored
Normal file
@ -0,0 +1 @@
|
||||
4
|
18
debian/control
vendored
Normal file
18
debian/control
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
Source: smartmontools
|
||||
Section: utils
|
||||
Priority: optional
|
||||
Maintainer: Guido Guenther <agx@debian.org>
|
||||
Build-Depends: debhelper (>= 4), libcam-dev [kfreebsd-i386 kfreebsd-amd64]
|
||||
Standards-Version: 3.6.1
|
||||
|
||||
Package: smartmontools
|
||||
Architecture: any
|
||||
Conflicts: smartsuite, ucsc-smartsuite
|
||||
Depends: ${misc:Depends}, ${shlibs:Depends}
|
||||
Recommends: mailx | mailutils
|
||||
Description: control and monitor storage systems using S.M.A.R.T.
|
||||
The smartmontools package contains two utility programs (smartctl and smartd)
|
||||
to control and monitor storage systems using the Self-Monitoring, Analysis and
|
||||
Reporting Technology System (S.M.A.R.T.) built into most modern ATA and SCSI
|
||||
hard disks. It is derived from the smartsuite package, and includes support
|
||||
for ATA/ATAPI-5 disks. It should run on any modern Linux system.
|
12
debian/copyright
vendored
Normal file
12
debian/copyright
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
This package was debianized by Guido Guenther <agx@debian.org> on
|
||||
Tue, 14 Jan 2003 12:58:00 +0000.
|
||||
|
||||
It was downloaded from http://smartmontools.sourceforge.net/
|
||||
|
||||
Upstream Authors: Bruce Allen <smartmontools-support@lists.sourceforge.net>
|
||||
|
||||
Copyright:
|
||||
|
||||
You are free to distribute this software under the terms of the GNU General
|
||||
Public License Version 2. The full text of this license can be found in the
|
||||
file /usr/share/common-licenses/GPL-2
|
3
debian/dirs
vendored
Normal file
3
debian/dirs
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
etc/smartmontools/run.d
|
||||
usr/share/smartmontools
|
||||
usr/sbin
|
4
debian/docs
vendored
Normal file
4
debian/docs
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
README
|
||||
TODO
|
||||
AUTHORS
|
||||
WARNINGS
|
120
debian/rules
vendored
Normal file
120
debian/rules
vendored
Normal file
@ -0,0 +1,120 @@
|
||||
#!/usr/bin/make -f
|
||||
# Sample debian/rules that uses debhelper.
|
||||
# GNU copyright 1997 to 1999 by Joey Hess.
|
||||
|
||||
# Uncomment this to turn on verbose mode.
|
||||
#export DH_VERBOSE=1
|
||||
|
||||
# see debian/compat for debhelper version
|
||||
|
||||
CFLAGS = -fsigned-char -Wall
|
||||
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
|
||||
CFLAGS += -O0
|
||||
else
|
||||
CFLAGS += -O2
|
||||
endif
|
||||
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
|
||||
INSTALL_PROGRAM = install -s
|
||||
else
|
||||
INSTALL_PROGRAM = install
|
||||
endif
|
||||
|
||||
configure: configure-stamp
|
||||
configure-stamp:
|
||||
dh_testdir
|
||||
chmod a+x ./configure
|
||||
CFLAGS="${CFLAGS}" ./configure --prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--mandir=/usr/share/man \
|
||||
--with-initscriptdir=/etc/init.d \
|
||||
--with-docdir=/usr/share/doc/smartmontools
|
||||
touch configure-stamp
|
||||
|
||||
|
||||
build: build-stamp
|
||||
|
||||
build-stamp: configure-stamp
|
||||
dh_testdir
|
||||
|
||||
# Add here commands to compile the package.
|
||||
$(MAKE)
|
||||
|
||||
#/usr/bin/docbook-to-man debian/smartmontools.sgml > smartmontools.1
|
||||
|
||||
touch build-stamp
|
||||
|
||||
clean:
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
rm -f build-stamp configure-stamp
|
||||
# rm -f debian/logcheck.logcheck.ignore.*
|
||||
|
||||
# Add here commands to clean up after the build process.
|
||||
-$(MAKE) distclean
|
||||
|
||||
dh_clean
|
||||
|
||||
install: build
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_clean -k
|
||||
dh_installdirs
|
||||
|
||||
$(MAKE) DESTDIR=$(CURDIR)/debian/smartmontools \
|
||||
INSTALL_PROGRAM="${INSTALL_PROGRAM}" install-sbinPROGRAMS
|
||||
$(MAKE) DESTDIR=$(CURDIR)/debian/smartmontools \
|
||||
install-sysconfDATA
|
||||
$(MAKE) DESTDIR=$(CURDIR)/debian/smartmontools \
|
||||
install-man
|
||||
$(MAKE) DESTDIR=$(CURDIR)/debian/smartmontools \
|
||||
examplesdir='$$(docdir)/examples' \
|
||||
-C examplescripts/ install-examplesSCRIPTS install-examplesDATA
|
||||
|
||||
install -D -m 755 debian/smartmontools-bug \
|
||||
$(CURDIR)/debian/smartmontools/usr/share/bug/smartmontools
|
||||
install -D -m 755 debian/smartd-runner \
|
||||
$(CURDIR)/debian/smartmontools/usr/share/smartmontools/smartd-runner
|
||||
install -D -m 755 debian/10mail \
|
||||
$(CURDIR)/debian/smartmontools/etc/smartmontools/run.d/10mail
|
||||
# for T in paranoid server workstation; do \
|
||||
# cp debian/smartmontools.logcheck.ignore \
|
||||
# debian/logcheck.logcheck.ignore.$${T}; \
|
||||
# done
|
||||
|
||||
# Build architecture-independent files here.
|
||||
binary-indep: build install
|
||||
# We have nothing to do by default.
|
||||
|
||||
# Build architecture-dependent files here.
|
||||
binary-arch: build install
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
# dh_installdebconf
|
||||
dh_installdocs
|
||||
dh_installexamples
|
||||
dh_installmenu
|
||||
# dh_installlogrotate
|
||||
# dh_installemacsen
|
||||
# dh_installpam
|
||||
# dh_installmime
|
||||
dh_installinit
|
||||
dh_installcron
|
||||
dh_installman
|
||||
dh_installinfo
|
||||
# dh_installlogcheck
|
||||
# dh_undocumented
|
||||
dh_installchangelogs CHANGELOG
|
||||
dh_link
|
||||
dh_strip
|
||||
dh_compress
|
||||
dh_fixperms
|
||||
# dh_makeshlibs
|
||||
dh_installdeb
|
||||
# dh_perl
|
||||
dh_shlibdeps
|
||||
dh_gencontrol
|
||||
dh_md5sums
|
||||
dh_builddeb
|
||||
|
||||
binary: binary-indep binary-arch
|
||||
.PHONY: build clean binary-indep binary-arch binary install configure
|
10
debian/smartd-runner
vendored
Normal file
10
debian/smartd-runner
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
tmp=$(tempfile)
|
||||
cat >$tmp
|
||||
|
||||
run-parts --report --lsbsysinit --arg=$tmp --arg="$1" \
|
||||
--arg="$2" --arg="$3" -- /etc/smartmontools/run.d
|
||||
|
||||
rm -f $tmp
|
||||
|
13
debian/smartmontools-bug
vendored
Normal file
13
debian/smartmontools-bug
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
#!/bin/sh -e
|
||||
#
|
||||
# reportbug helper for smartmontools
|
||||
#
|
||||
# check what IDE_TASK options are set in the kernel:
|
||||
|
||||
echo "Ouput of $0:" >&3
|
||||
CONFIG=/boot/config-`uname -r`
|
||||
if [ -r "$CONFIG" ]; then
|
||||
grep IDE_TASK $CONFIG >&3
|
||||
else
|
||||
echo "Couldn't parse $CONFIG" >&3
|
||||
fi
|
12
debian/smartmontools.default
vendored
Normal file
12
debian/smartmontools.default
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
# Defaults for smartmontools initscript (/etc/init.d/smartmontools)
|
||||
# This is a POSIX shell fragment
|
||||
|
||||
# list of devices you want to explicitly enable S.M.A.R.T. for
|
||||
# not needed if the device is monitored by smartd
|
||||
#enable_smart="/dev/hda /dev/hdb"
|
||||
|
||||
# uncomment to start smartd on system startup
|
||||
#start_smartd=yes
|
||||
|
||||
# uncomment to pass additional options to smartd on startup
|
||||
#smartd_opts="--interval=1800"
|
87
debian/smartmontools.init
vendored
Normal file
87
debian/smartmontools.init
vendored
Normal file
@ -0,0 +1,87 @@
|
||||
#!/bin/sh -e
|
||||
#
|
||||
# smartmontools init.d startup script
|
||||
#
|
||||
# (C) 2003,04 Guido Günther <agx@sigxcpu.org>
|
||||
#
|
||||
# loosely based on the init script that comes with smartmontools which is
|
||||
# copyrighted 2002 by Bruce Allen <smartmontools-support@lists.sourceforge.net>
|
||||
|
||||
SMARTCTL=/usr/sbin/smartctl
|
||||
SMARTD=/usr/sbin/smartd
|
||||
SMARTDPID=/var/run/smartd.pid
|
||||
[ -x $SMARTCTL ] || exit 0
|
||||
[ -x $SMARTD ] || exit 0
|
||||
RET=0
|
||||
|
||||
[ -r /etc/default/smartmontools ] && . /etc/default/smartmontools
|
||||
|
||||
smartd_opts="--pidfile $SMARTDPID $smartd_opts"
|
||||
|
||||
enable_smart() {
|
||||
echo -n "Enabling S.M.A.R.T. for:"
|
||||
for device in $enable_smart; do
|
||||
echo -n " $device"
|
||||
$SMARTCTL --quietmode=errorsonly --smart=on $device || \
|
||||
{ echo -n "(failed)"; RET=2; }
|
||||
done
|
||||
echo "."
|
||||
}
|
||||
|
||||
check_start_smartd_option() {
|
||||
if [ ! "$start_smartd" = "yes" ]; then
|
||||
echo "Not starting S.M.A.R.T. daemon smartd, disabled via /etc/default/smartmontools"
|
||||
return 1
|
||||
else
|
||||
return 0
|
||||
fi
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
[ -n "$enable_smart" ] && enable_smart
|
||||
if check_start_smartd_option; then
|
||||
echo -n "Starting S.M.A.R.T. daemon: smartd"
|
||||
if start-stop-daemon --start --quiet --pidfile $SMARTDPID \
|
||||
--exec $SMARTD -- $smartd_opts; then
|
||||
echo "."
|
||||
else
|
||||
echo " (failed)"
|
||||
RET=1
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
echo -n "Stopping S.M.A.R.T. daemon: smartd"
|
||||
start-stop-daemon --stop --quiet --oknodo --pidfile $SMARTDPID
|
||||
echo "."
|
||||
;;
|
||||
reload|force-reload)
|
||||
echo -n "Reloading S.M.A.R.T. daemon: smartd"
|
||||
if start-stop-daemon --stop --quiet --signal 1 \
|
||||
--pidfile $SMARTDPID; then
|
||||
echo "."
|
||||
else
|
||||
echo " (failed)"
|
||||
RET=1
|
||||
fi
|
||||
;;
|
||||
restart)
|
||||
if check_start_smartd_option; then
|
||||
echo -n "Restarting S.M.A.R.T. daemon: smartd"
|
||||
start-stop-daemon --stop --quiet --oknodo --retry 30 --pidfile $SMARTDPID
|
||||
if start-stop-daemon --start --quiet --pidfile $SMARTDPID \
|
||||
--exec $SMARTD -- $smartd_opts; then
|
||||
echo "."
|
||||
else
|
||||
echo " (failed)"
|
||||
RET=1
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "Usage: /etc/init.d/smartmontools {start|stop|restart|reload|force-reload}"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
exit $RET
|
Loading…
Reference in New Issue
Block a user