2021-05-04 20:14:08 +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
|
|
|
|
|
2021-05-04 21:01:38 +00:00
|
|
|
# check if active in systemd, then
|
|
|
|
systemctl --user stop ${service_name}
|
|
|
|
# check if running in podman, then
|
2021-05-04 20:14:08 +00:00
|
|
|
podman stop ${container_name}
|
2021-05-04 21:01:38 +00:00
|
|
|
|
|
|
|
# always
|
2021-05-04 20:14:08 +00:00
|
|
|
systemctl --user disable ${service_name}
|