services-garbaye/podman-peerjs/70_disable.sh

17 lines
357 B
Bash
Executable File

#!/usr/bin/env bash
ABSDIR="$( dirname "$(readlink -f -- "$0")" )"
source ${ABSDIR}/../functions.sh
source ${ABSDIR}/vars.sh
ensure_pwd_is_scriptdir
ensure_not_root
# 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}