podman-peerjs
This commit is contained in:
parent
67dd1eb6f4
commit
9adbb1da5f
|
@ -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}
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue