10 lines
120 B
Bash
10 lines
120 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
set -eo pipefail
|
||
|
URL=http://localhost
|
||
|
|
||
|
wget --quiet --tries=1 --spider ${URL}
|
||
|
[ $? -ne 0 ] && exit 1
|
||
|
|
||
|
exit 0
|