podman-peerjs

This commit is contained in:
Gitouche 2021-05-04 23:01:38 +02:00
parent 67dd1eb6f4
commit 9adbb1da5f
4 changed files with 12 additions and 4 deletions

View file

@ -12,4 +12,6 @@ if systemctl --user is-active --quiet service ${service_name}; then
exit 1
fi
# Add check if running, ask to stop it first, then exit.
systemctl --user start ${service_name}

View file

@ -12,4 +12,6 @@ if ! systemctl --user is-active --quiet service ${service_name}; then
exit 1
fi
# Check if running through podman (no systemd), stop with podman stop , then exit
systemctl --user stop ${service_name}

View file

@ -7,6 +7,10 @@ source ${ABSDIR}/vars.sh
ensure_pwd_is_scriptdir
ensure_not_root
podman stop ${container_name}
systemctl --user disable ${service_name}
# check if active in systemd, then
systemctl --user stop ${service_name}
# check if running in podman, then
podman stop ${container_name}
# always
systemctl --user disable ${service_name}

View file

@ -12,7 +12,7 @@ if ! podman container exists ${container_name}; then
exit 1
fi
# add check if running, stop first
# add check if systemctl exists, disable first
# add check if running, ask to stop first
# add check if systemctl exists, ask to disable first
podman rm ${container_name}