services-garbaye/podman-peerjs/00_status.sh

16 lines
382 B
Bash
Raw Normal View History

2021-05-05 21:03:22 +00:00
#!/usr/bin/env bash
ABSDIR="$( dirname "$(readlink -f -- "$0")" )"
source ${ABSDIR}/../functions.sh
source ${ABSDIR}/vars.sh
ensure_pwd_is_scriptdir
ensure_not_root
echo "Checking podman images..."
podman images ${image_name}
echo "Checking container status..."
podman ps -a | grep ${container_name}
echo "Checking systemd unit status..."
systemctl --user status ${service_name}