[arch-commits] Commit in smartmontools/repos (3 files)

Giovanni Scafora giovanni at archlinux.org
Tue Oct 27 21:51:50 UTC 2009


    Date: Tuesday, October 27, 2009 @ 17:51:50
  Author: giovanni
Revision: 56782

Merged revisions 56781 via svnmerge from 
svn+ssh://gerolde.archlinux.org/srv/svn-packages/smartmontools/trunk

........
  r56781 | giovanni | 2009-10-27 14:51:07 -0700 (mar, 27 ott 2009) | 1 line
........

Added:
  smartmontools/repos/extra-x86_64/smartd.conf
    (from rev 56781, smartmontools/trunk/smartd.conf)
  smartmontools/repos/extra-x86_64/smartd.rc
    (from rev 56781, smartmontools/trunk/smartd.rc)
Modified:
  smartmontools/repos/extra-x86_64/	(properties)

-------------+
 smartd.conf |    1 +
 smartd.rc   |   39 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 40 insertions(+)


Property changes on: smartmontools/repos/extra-x86_64
___________________________________________________________________
Modified: svnmerge-integrated
   - /smartmontools/trunk:1-56779
   + /smartmontools/trunk:1-56781

Copied: smartmontools/repos/extra-x86_64/smartd.conf (from rev 56781, smartmontools/trunk/smartd.conf)
===================================================================
--- extra-x86_64/smartd.conf	                        (rev 0)
+++ extra-x86_64/smartd.conf	2009-10-27 21:51:50 UTC (rev 56782)
@@ -0,0 +1 @@
+SMARTD_ARGS=""

Copied: smartmontools/repos/extra-x86_64/smartd.rc (from rev 56781, smartmontools/trunk/smartd.rc)
===================================================================
--- extra-x86_64/smartd.rc	                        (rev 0)
+++ extra-x86_64/smartd.rc	2009-10-27 21:51:50 UTC (rev 56782)
@@ -0,0 +1,39 @@
+#!/bin/bash
+
+# source application-specific settings
+SMARTD_ARGS=
+[ -f /etc/conf.d/smartd ] && . /etc/conf.d/smartd
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+case "$1" in
+
+   start)
+     stat_busy "Starting smartd"
+     /usr/sbin/smartd ${SMARTD_ARGS} &>/dev/null
+     if [ $? -ne 0 ]; then
+       stat_fail
+     else
+       add_daemon smartd
+       stat_done
+     fi
+   ;;
+
+   stop)
+     stat_busy "Stopping smartd"
+     kill -9 `pidof /usr/sbin/smartd` &>/dev/null
+     rm_daemon smartd
+     stat_done
+   ;;
+
+   restart)
+     stat_busy "Restarting smartd ..."
+     $0 stop
+     $0 start
+     stat_done
+   ;;
+
+   *)
+     echo "usage: $0 {start|stop|restart}"
+esac




More information about the arch-commits mailing list