Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script Anpassungen #357

Merged
merged 7 commits into from
Jul 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,4 +283,4 @@
* added support for avahi-daemon (installation and autostart)

### v0.0.1 (2017-01-31)
* project started / initial release
* project started / initial release
8 changes: 4 additions & 4 deletions debian/scripts/healthcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@

if [ "$(cat /opt/scripts/.docker_config/.healthcheck)" == "starting" ]
then
echo 'Health status: OK - Startup script is still running.'
echo "Health status: OK - Startup script is still running."
exit 0
elif [ "$(cat /opt/scripts/.docker_config/.healthcheck)" == "maintenance" ]
then
echo 'Health status: OK - Container is running in maintenance mode.'
echo "Health status: OK - Container is running in maintenance mode."
exit 0
elif [ "$(ps -fe|grep "[i]obroker.js-controller"|awk '{print $2}')" != "" ]
then
echo 'Health status: OK - Main process (js-controller) is running.'
echo "Health status: OK - Main process (js-controller) is running."
exit 0
fi

echo 'Health status: !!! NOT OK !!! - Something went wrong. Please see container logs for more details and/or try restarting the container.'
echo "Health status: !!! NOT OK !!! - Something went wrong. Please see container logs for more details and/or try restarting the container."
exit 1
Loading