{ "name": "monit", "version": "6.0.0", "summary": "Monit: watches processes, files, file systems and hosts, restarts and alerts, with a small web page", "category": "server", "license": "AGPL-3.0-only", "homepage": "https://mmonit.com/monit/", "source": { "url": "https://mmonit.com/monit/dist/monit-6.0.0.tar.gz", "sha256": "ddacd2a8120aeb2351e4486ee04a17782b5004aee99f2041d829bc4dcf2a5b3b" }, "watch": {"kind": "index", "url": "https://mmonit.com/monit/dist/", "regex": "monit-([0-9]+(?:\\.[0-9]+)+)\\.tar\\.gz", "checksum": "{source}.sha256"}, "deps": [ "libxcrypt", "openssl", "zlib" ], "env_packages": [], "static": true, "nss": true, "check": "bin/monit -V | first && t=$(mktemp -d) && P=$(free_port) && echo x > \"$t/watched\" && printf 'set daemon 1\\nset pidfile %s/monit.pid\\nset idfile %s/monit.id\\nset statefile %s/monit.state\\nset log %s/monit.log\\nset httpd port %s and use address 127.0.0.1\\n allow 127.0.0.1\\ncheck file bvsfile with path %s/watched\\n' \"$t\" \"$t\" \"$t\" \"$t\" \"$P\" \"$t\" > \"$t/monitrc\" && chmod 600 \"$t/monitrc\" && bin/monit -c \"$t/monitrc\" -t | has 'Control file syntax OK' && { bin/monit -c \"$t/monitrc\" -I > /dev/null 2>&1 & echo $! > \"$t/pid\"; } && wait_port \"$P\" && i=0 && until bin/monit -c \"$t/monitrc\" status bvsfile 2>/dev/null | has 'status *OK'; do [ $i -lt 50 ] || exit 1; sleep 0.2; i=$((i + 1)); done && bin/monit -c \"$t/monitrc\" summary | has bvsfile && echo \"monit: a file watched, its state read over its web port $P\"; r=$?; [ -f \"$t/pid\" ] && kill \"$(cat \"$t/pid\")\" 2>/dev/null; exit $r" }