This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Resource script for Minio | |
# | |
# Description: Manages Minio as an OCF resource in | |
# an Active-Passive High Availability setup. | |
# | |
# Author: Ricardo Branco <[email protected]> : Initial script for minio server | |
# License: GNU General Public License (GPL) | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db.currentOp().inprog.forEach( | |
function(op) { | |
if(op.secs_running > 5) printjson(op); | |
} | |
) |