Playbook für die Nextcloud Notfalleinrichtung.
This commit is contained in:
14
roles/initnextcloud/files/scripts/run-stressberry.sh
Executable file
14
roles/initnextcloud/files/scripts/run-stressberry.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
# from ansible/resources
|
||||
|
||||
mkdir -p /tank/stressberry/${HOSTNAME}
|
||||
cd /tank/stressberry/${HOSTNAME}
|
||||
|
||||
SRUN=$(which stressberry-run)
|
||||
SPLOT=$(which stressberry-plot)
|
||||
|
||||
echo "Aufruf ${SRUN}"
|
||||
${SRUN} -n "${HOSTNAME}" -d 1800 -i 300 -c 4 ${HOSTNAME}.out
|
||||
echo "Aufruf ${SPLOT}"
|
||||
${SPLOT} ${HOSTNAME}.out -f -d 300 -f -l 400 3100 -t 25 90 -o ${HOSTNAME}.png --not-transparent
|
||||
|
||||
Reference in New Issue
Block a user