Skip to content
Snippets Groups Projects
Commit 59033f70 authored by Seblu's avatar Seblu
Browse files

checkservice: Quote path

parent f398119f
No related branches found
No related tags found
No related merge requests found
......@@ -95,8 +95,8 @@ declare -a needy=() pids=()
declare -i pid=0
for svc in "${services[@]}"; do
unit_path=$(systemctl -p ControlGroup show "$svc"|cut -f 2 -d=)
busname=$(systemctl -p BusName show "$svc"|cut -f 2 -d=)
unit_path="$(systemctl -p ControlGroup show "$svc"|cut -f 2 -d=)"
busname="$(systemctl -p BusName show "$svc"|cut -f 2 -d=)"
# check if unit is in system slice
[[ "$unit_path" =~ /user\.slice/ && ! "$user_slice" == true ]] && continue
pids=( $(< "$systemd_cgroup_base_path/$unit_path/tasks") )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment