Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=e117a0edbbcfb1c782842a814028da1535c06071

commit e117a0edbbcfb1c782842a814028da1535c06071
Author: Miklos Vajna <vmik...@frugalware.org>
Date:   Tue Aug 11 22:24:58 2009 +0200

smartmontools-5.38-3-i686

- apply rc.smartd changes from bug #3903
* smart daemon (sounds funny to me) -> SMART daemon
* use of '-p' (pidfile) option
* binaries with full paths

diff --git a/source/apps/smartmontools/FrugalBuild 
b/source/apps/smartmontools/FrugalBuild
index 6b601a0..a884c6a 100644
--- a/source/apps/smartmontools/FrugalBuild
+++ b/source/apps/smartmontools/FrugalBuild
@@ -3,7 +3,7 @@

pkgname=smartmontools
pkgver=5.38
-pkgrel=2
+pkgrel=3
pkgdesc="For monitoring S.M.A.R.T. disks and devices"
depends=('bash')
groups=('apps')
@@ -12,7 +12,7 @@ Finclude sourceforge
url="http://smartmontools.sourceforge.net/";
source=($source rc.smartd)
sha1sums=('90e36f46af7a35336c63868176aa71deef4c9e66' \
-          '490109da3d96142d24ff1f902c0d55947747e61d')
+          'af645060704cbf6a165a3216efdc9256aafc5415')

build()
{
diff --git a/source/apps/smartmontools/rc.smartd 
b/source/apps/smartmontools/rc.smartd
index 652e835..0a908dc 100644
--- a/source/apps/smartmontools/rc.smartd
+++ b/source/apps/smartmontools/rc.smartd
@@ -12,7 +12,7 @@ TEXTDOMAIN=smartd
TEXTDOMAINDIR=/lib/initscripts/messages

actions=(restart start status stop)
-daemon=$"smart daemon"
+daemon=$"SMART daemon"

pid="cat /var/run/smartd.pid 2> /dev/null"

@@ -20,8 +20,7 @@ rc_start()
{
start_msg
if [[ "$(eval $pid)" == "" ]] ; then
-               smartd
-               pidof smartd >/var/run/smartd.pid
+               /usr/sbin/smartd -p /var/run/smartd.pid
ok $?
else
ok 999
@@ -32,8 +31,7 @@ rc_stop()
{
stop_msg
if [[ "$(eval $pid)" != "" ]] ; then
-               killall smartd
-               rm -f /var/run/smartd.pid
+               /bin/kill $(eval $pid)
ok $?
else
ok 999
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to