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_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.
|
||||
exit 1
|
||||
fi
|
||||
|
|
|
@ -7,7 +7,7 @@ source ${ABSDIR}/vars.sh
|
|||
ensure_pwd_is_scriptdir
|
||||
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.
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue