Skip to content
Snippets Groups Projects
Commit 993a0a5f authored by David Schmitz's avatar David Schmitz
Browse files

runfod.sh: move systemd fod status to own script

parent 47cb584e
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
#!/bin/sh #!/bin/sh
if [ -f "./runfod.conf" ]; then if [ -f "./runfod.conf" ]; then
...@@ -24,19 +25,7 @@ fi ...@@ -24,19 +25,7 @@ fi
if [ "$FOD_RUNMODE" = "via_systemd" ]; then if [ "$FOD_RUNMODE" = "via_systemd" ]; then
echo "$0: using runmode via_systemd, nothing todo" 1>&2 echo "$0: using runmode via_systemd, nothing todo" 1>&2
exec ./systemd/fod-systemd-status.sh
SYSTEMD_COLORS=1 systemctl status "fod-gunicorn" | cat
echo
SYSTEMD_COLORS=1 systemctl status "fod-celeryd" | cat
echo
SYSTEMD_COLORS=1 systemctl status "redis" | cat
echo
SYSTEMD_COLORS=1 systemctl status "exabgpForFod" | cat
echo
elif [ "$FOD_RUNMODE" = "via_supervisord" ]; then elif [ "$FOD_RUNMODE" = "via_supervisord" ]; then
echo "$0: using runmode via_supervisord" 1>&2 echo "$0: using runmode via_supervisord" 1>&2
exec ./runfod-supervisord.sh "$@" exec ./runfod-supervisord.sh "$@"
......
#!/bin/bash
if systemctl cat redis &>/dev/null; then
SYSTEMD_COLORS=1 systemctl status "redis" | cat
else
SYSTEMD_COLORS=1 systemctl status "redis-server" | cat
fi
echo
SYSTEMD_COLORS=1 systemctl status "exabgpForFod" | cat
echo
SYSTEMD_COLORS=1 systemctl status "fod-gunicorn" | cat
echo
SYSTEMD_COLORS=1 systemctl status "fod-celeryd" | cat
echo
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment