Loading checkservices +1 −1 Original line number Diff line number Diff line Loading @@ -53,7 +53,7 @@ services=($(systemctl -t service --full|grep \.service|grep running|sed -rn 's/^ for svc in "${services[@]}"; do pid=$(systemctl show "$svc"|sed -nr 's/^MainPID=(.*)/\1/p') deleted=$(grep '(deleted)' "/proc/$pid/maps") deleted=$(grep '(deleted)' "/proc/$pid/maps"|sed -nr 's|^\S+ ..x. \S+ \S+ \S+ \s+||p'|sort|uniq) if [[ -n $deleted ]]; then echo systemctl restart "$svc" [[ $systemd_cmd ]] && systemctl "$systemd_cmd" "$svc" Loading Loading
checkservices +1 −1 Original line number Diff line number Diff line Loading @@ -53,7 +53,7 @@ services=($(systemctl -t service --full|grep \.service|grep running|sed -rn 's/^ for svc in "${services[@]}"; do pid=$(systemctl show "$svc"|sed -nr 's/^MainPID=(.*)/\1/p') deleted=$(grep '(deleted)' "/proc/$pid/maps") deleted=$(grep '(deleted)' "/proc/$pid/maps"|sed -nr 's|^\S+ ..x. \S+ \S+ \S+ \s+||p'|sort|uniq) if [[ -n $deleted ]]; then echo systemctl restart "$svc" [[ $systemd_cmd ]] && systemctl "$systemd_cmd" "$svc" Loading