podman-peerjs fix systemctl
This commit is contained in:
parent
9a4c34a76e
commit
735c329f00
|
@ -7,7 +7,7 @@ source ${ABSDIR}/vars.sh
|
||||||
ensure_pwd_is_scriptdir
|
ensure_pwd_is_scriptdir
|
||||||
ensure_not_root
|
ensure_not_root
|
||||||
|
|
||||||
if systemctl is-active --quiet service ${service_name}; then
|
if systemctl --user is-active --quiet service ${service_name}; then
|
||||||
echo Service ${service_name} is already running.
|
echo Service ${service_name} is already running.
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -7,7 +7,7 @@ source ${ABSDIR}/vars.sh
|
||||||
ensure_pwd_is_scriptdir
|
ensure_pwd_is_scriptdir
|
||||||
ensure_not_root
|
ensure_not_root
|
||||||
|
|
||||||
if ! systemctl is-active --quiet service ${service_name}; then
|
if ! systemctl --user is-active --quiet service ${service_name}; then
|
||||||
echo Service ${service_name} is already stopped.
|
echo Service ${service_name} is already stopped.
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue