examples and documentation

This commit is contained in:
Juraj Bednar 2022-02-19 00:07:16 +01:00
parent a2ee342adb
commit d10b4b23b1
2 changed files with 6 additions and 0 deletions

View File

@ -26,6 +26,10 @@ port, but if the authentication succeeds. It only needs to be able to run echo c
you can configure the shell to just print "ssh_connection_ok" on stdout. It does not need
to be able to execute any other commands.
**check_script** takes a check identificator as the first parameter and the rest are
executed (warning, no sanity checking, we expect no user input coming to this). If the script
returns an error status, it failed (exit status >0)
The last **signal-cli** command just downloads all messages for this instance and
drops them. Use this if this script is the only user using this server to
ease up storage requirements for signal servers and make sure that it does not

View File

@ -125,6 +125,8 @@ check_url my-third.server.com "https://my-third.server.com/index.html" "Welcome
check_ssh "johnpb27" "my-ssh.server.com" 22
check_script "alliswell" "/usr/local/bin/is-all-well"
# Leave this if you don't use signal-cli outside of this script,
# otherwise comment out, see readme
signal-cli -u $SIGNAL_USER receive > /dev/null 2>&1