diff options
author | Greg Frost <gregfrost1@bigpond.com> | 2009-07-01 03:50:17 (GMT) |
---|---|---|
committer | Greg Frost <gregfrost1@bigpond.com> | 2009-07-01 03:50:17 (GMT) |
commit | 54bcbdf2afe09939a73e2a5a8e0c8818905c1cd0 (patch) | |
tree | 74737569812e962bf00317d70e4fc55d3a905300 /abs/core-testing/runit-scripts/runitscripts | |
parent | b0a0e704f3203cfe91ac14bff539040639eabd3e (diff) | |
download | linhes_pkgbuild-54bcbdf2afe09939a73e2a5a8e0c8818905c1cd0.zip linhes_pkgbuild-54bcbdf2afe09939a73e2a5a8e0c8818905c1cd0.tar.gz linhes_pkgbuild-54bcbdf2afe09939a73e2a5a8e0c8818905c1cd0.tar.bz2 |
runit-scripts: add smartd sv scripts
Diffstat (limited to 'abs/core-testing/runit-scripts/runitscripts')
-rwxr-xr-x | abs/core-testing/runit-scripts/runitscripts/services/smartd/finish | 9 | ||||
-rwxr-xr-x | abs/core-testing/runit-scripts/runitscripts/services/smartd/run | 13 |
2 files changed, 22 insertions, 0 deletions
diff --git a/abs/core-testing/runit-scripts/runitscripts/services/smartd/finish b/abs/core-testing/runit-scripts/runitscripts/services/smartd/finish new file mode 100755 index 0000000..7b77994 --- /dev/null +++ b/abs/core-testing/runit-scripts/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/core-testing/runit-scripts/runitscripts/services/smartd/run b/abs/core-testing/runit-scripts/runitscripts/services/smartd/run new file mode 100755 index 0000000..15ed769 --- /dev/null +++ b/abs/core-testing/runit-scripts/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 |