debug "Found service ${CYAN}${service}${NORMAL}'."
services+=( "${service}" )
done
- debug "Found services: ${CYAN}${services[*]}${NORMAL}'."
if [[ "${#services[*]}" == 0 ]] ; then
empty_line
fi
empty_line
- for service in "${ervices[@]}" ; do
+ for service in "${services[@]}" ; do
info "Restarting '${CYAN}${service}${NORMAL}' ..."
if [[ "${SIMULATE}" != "y" ]] ; then
systemctl restart "${service}"
sleep 15
fi
- for service in "${ervices[@]}" ; do
+ for service in "${services[@]}" ; do
empty_line
info "Status of '${CYAN}${service}${NORMAL}':"
svc_status=$( systemctl status "${service}" 2>&1 )