Commit fd3f0e46 authored by Vitaly Lipatov's avatar Vitaly Lipatov

serv-reload: add fallback via restart

parent cae4f10b
......@@ -40,7 +40,9 @@ serv_reload()
sudocmd systemctl reload $SERVICE "$@"
;;
*)
fatal "Have no suitable command for $SERVICETYPE"
info "Fallback to restart..."
load_helper serv-restart
serv_restart "$SERVICE" "$@"
;;
esac
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment