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 exit 1
fi fi
# Add check if running, ask to stop it first, then exit.
systemctl --user start ${service_name} systemctl --user start ${service_name}

View file

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

View file

@ -7,6 +7,10 @@ source ${ABSDIR}/vars.sh
ensure_pwd_is_scriptdir ensure_pwd_is_scriptdir
ensure_not_root ensure_not_root
podman stop ${container_name} # check if active in systemd, then
systemctl --user disable ${service_name}
systemctl --user stop ${service_name} 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 exit 1
fi fi
# add check if running, stop first # add check if running, ask to stop first
# add check if systemctl exists, disable first # add check if systemctl exists, ask to disable first
podman rm ${container_name} podman rm ${container_name}