Fix systemd
This commit is contained in:
parent
47381a6765
commit
986f3e2fc2
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ function checkService() {
|
||||||
RESULT=$($USER_COMMAND);
|
RESULT=$($USER_COMMAND);
|
||||||
else
|
else
|
||||||
local ROOT_COMMAND="systemctl is-active --quiet $SERVICE";
|
local ROOT_COMMAND="systemctl is-active --quiet $SERVICE";
|
||||||
local USER_COMMAND="$COMMAND && systemctl --user is-active --quiet $SERVICE";
|
local USER_COMMAND="systemctl --user is-active --quiet $SERVICE";
|
||||||
local RESULT_ROOT_COMMAND=$($ROOT_COMMAND);
|
local RESULT_ROOT_COMMAND=$($ROOT_COMMAND);
|
||||||
local RESULT_USER_COMMAND=$($USER_COMMAND);
|
local RESULT_USER_COMMAND=$($USER_COMMAND);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue