diff options
author | M S Vishwanath Bhat <vishwanath@gluster.com> | 2012-01-12 23:30:00 +0530 |
---|---|---|
committer | M S Vishwanath Bhat <vishwanath@gluster.com> | 2012-01-12 23:35:15 +0530 |
commit | f40ffd8028d3dd4f3eef4a3409c531af941d23f0 (patch) | |
tree | c2bcf865c0623761b01ca5929d8caa3c78d527bf /helper_scrips/start_stop.sh | |
parent | 254e67dbd7a35d38dbe7a5f525955adeb86f5939 (diff) |
renaming helper_scrips->helper_scripts and cleaning up the whitespaces
Change-Id: I6004e4066fab30e14716ef6475c1281270974d2b
Signed-off-by: M S Vishwanath Bhat <vishwanath@gluster.com>
Diffstat (limited to 'helper_scrips/start_stop.sh')
-rwxr-xr-x | helper_scrips/start_stop.sh | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/helper_scrips/start_stop.sh b/helper_scrips/start_stop.sh deleted file mode 100755 index 83ad1bf..0000000 --- a/helper_scrips/start_stop.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash - - -function _init () -{ - set -u; - volume_name=$1; -} - -function start_and_stop () -{ - while true; - do - gluster --mode=script volume stop $volume_name; - sleep 1; - gluster volume start $volume_name; - sleep 1; - done - - return 0; -} - -function main () -{ - - start_and_stop; - - return 0; -} - -_init "$@" && main "$@"
\ No newline at end of file |