diff options
author | James Meyer <james.meyer@operamail.com> | 2009-08-21 00:51:35 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2009-08-21 00:51:35 (GMT) |
commit | 348ed005f1ba2e77ded656fe2209a58197571b2d (patch) | |
tree | 9ea9354c86f0510526a72ba831a9a5656534010d /abs/mv-core/runit-scripts-mv/runitscripts/services/smartd/run | |
parent | 9a60dd7921db1ab7a168da96329bad3e9c24725e (diff) | |
download | linhes_pkgbuild-348ed005f1ba2e77ded656fe2209a58197571b2d.zip linhes_pkgbuild-348ed005f1ba2e77ded656fe2209a58197571b2d.tar.gz linhes_pkgbuild-348ed005f1ba2e77ded656fe2209a58197571b2d.tar.bz2 |
mv-core: bring more stuff up to date
Diffstat (limited to 'abs/mv-core/runit-scripts-mv/runitscripts/services/smartd/run')
-rwxr-xr-x | abs/mv-core/runit-scripts-mv/runitscripts/services/smartd/run | 13 |
1 files changed, 13 insertions, 0 deletions
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 |