diff options
| author | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-08-22 00:27:53 (GMT) |
|---|---|---|
| committer | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-08-22 00:27:53 (GMT) |
| commit | db17e125c87e8056e2d0cdc5f1985ab62e713c84 (patch) | |
| tree | 0e2c84550d6ffdfd33cc84c12c396db9ce3c987b /abs/mv-core/runit-scripts-mv/runitscripts/services/smartd | |
| parent | e067093b13fb71f9d928ccf7a1b3ce6dd0124795 (diff) | |
| parent | d630a6ae3ada088453209270791ae281e2d5e393 (diff) | |
| download | linhes_pkgbuild-db17e125c87e8056e2d0cdc5f1985ab62e713c84.zip linhes_pkgbuild-db17e125c87e8056e2d0cdc5f1985ab62e713c84.tar.gz linhes_pkgbuild-db17e125c87e8056e2d0cdc5f1985ab62e713c84.tar.bz2 | |
Merge branch 'HEAD' of ssh://cesman@knoppmyth.net/mount/repository/LinHES-PKGBUILD
Diffstat (limited to 'abs/mv-core/runit-scripts-mv/runitscripts/services/smartd')
| -rwxr-xr-x | abs/mv-core/runit-scripts-mv/runitscripts/services/smartd/finish | 9 | ||||
| -rwxr-xr-x | abs/mv-core/runit-scripts-mv/runitscripts/services/smartd/run | 13 |
2 files changed, 22 insertions, 0 deletions
diff --git a/abs/mv-core/runit-scripts-mv/runitscripts/services/smartd/finish b/abs/mv-core/runit-scripts-mv/runitscripts/services/smartd/finish new file mode 100755 index 0000000..7b77994 --- /dev/null +++ b/abs/mv-core/runit-scripts-mv/runitscripts/services/smartd/finish @@ -0,0 +1,9 @@ +#!/bin/bash + + . /etc/rc.conf + . /etc/rc.d/functions + + stat_runit "Stopping smartd" + kill -9 `pidof /usr/sbin/smartd` &>/dev/null + rm_daemon smartd + stat_done diff --git a/abs/mv-core/runit-scripts-mv/runitscripts/services/smartd/run b/abs/mv-core/runit-scripts-mv/runitscripts/services/smartd/run new file mode 100755 index 0000000..15ed769 --- /dev/null +++ b/abs/mv-core/runit-scripts-mv/runitscripts/services/smartd/run @@ -0,0 +1,13 @@ +#!/bin/bash + + . /etc/rc.conf + . /etc/rc.d/functions + + stat_runit "Starting smartd" + /usr/sbin/smartd -n -c /etc/smartd.conf -q never &>/dev/null + if [ $? -ne 0 ]; then + stat_fail + else + add_daemon smartd + stat_done + fi |
