From 0047bd4887f18dd8c0ab4c6434d2794561920db2 Mon Sep 17 00:00:00 2001 From: bmen Date: Sun, 26 Jul 2020 11:46:59 +0000 Subject: [PATCH] =?UTF-8?q?Befehl=20zum=20checken,=20ob=20ein=20Webservice?= =?UTF-8?q?=20auf=20localhost=20l=C3=A4uft?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 6e29457..46f078b 100644 --- a/README.md +++ b/README.md @@ -109,6 +109,10 @@ Rsync ohne Rechteübernahme (gut für gemountete Laufwerke SAMBA) ``` sudo rsync -rltv --exclude '/storage/var/lib/nextcloud/*' /storage/ /mnt/backup-storage/ ``` +Checken ob ein Webservice in localhost läuft. Bei Ausgabe `200` ist alles OK: +``` +curl -sL -w "%{http_code}\\n" "http://0.0.0.0:9090" -o /dev/null +``` ## Gute Quellen * Bash-Skripte: https://wiki.ubuntuusers.de/Shell/Bash-Skripting-Guide_für_Anfänger/ * Cronjobs: https://www.stetic.com/developer/cronjob-linux-tutorial-und-crontab-syntax.html