b8f4aced81
Restart After Run (Off / Always / When the Script Asks, with a delay up to 60 minutes) is a script option, versioned in the run snapshot and carried in ScriptCommandPayload like the other run options, and Run Script can override it for one run. Asking means exit 3010 or 1641, and on linux and macOS also 194 (what exit 3010 becomes in an 8-bit status); with the option on, an asking exit is a success. The agent restarts only after the server holds the job's result: the result is kept in the local store first, then a restart request on the device's event subject is answered once the server has stored the final state (applied from the request if its JetStream copy lags) and every output line (missing lines are resent). If the server is unreachable, the kept result is sent after the restart. The job shows Restart Requested, Restarting, then Restarted when the device's inventory reports a newer boot time; Refused, Cancelled and Failed are reported too, and every step is audited. Pending restarts carry an opaque continuation for script sequences. Mechanisms, all behind ISystemRestart: Windows InitiateShutdownW (SHUTDOWN_RESTART | SHUTDOWN_FORCE_OTHERS, the delay as grace period, planned Application: Installation reason) after enabling SeShutdownPrivilege; Windows PE tries the same API, then wpeutil reboot; linux uses logind Reboot/ScheduleShutdown over D-Bus (Tmds.DBus.Protocol), falling back to systemd StartUnit(reboot.target); macOS reports it is unsupported. AllowRestart (default on) is a managed agent setting with ADMX/ADML, an MSI property and registry/agent.json support. The agent service is now plain Automatic: install sets it, and the agent switches an earlier Delayed Start when it starts as a service. Migration RestartAfterRun for SQLite, PostgreSQL and SQL Server. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
77 lines
4.4 KiB
XML
77 lines
4.4 KiB
XML
<Project>
|
|
<PropertyGroup>
|
|
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<!-- Transitive pins for known-vulnerability fixes (NU1903). -->
|
|
<PackageVersion Include="SQLitePCLRaw.lib.e_sqlite3" Version="2.1.12" />
|
|
<PackageVersion Include="System.Security.Cryptography.Pkcs" Version="10.0.13" />
|
|
<PackageVersion Include="System.Security.Cryptography.Xml" Version="10.0.13" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<!-- Messaging -->
|
|
<PackageVersion Include="NATS.Net" Version="3.1.0" />
|
|
<PackageVersion Include="NATS.Jwt" Version="1.0.1" />
|
|
<PackageVersion Include="NATS.NKeys" Version="1.0.2" />
|
|
<!-- Agent (linux): the system bus for a clean restart through systemd-logind. MIT. -->
|
|
<PackageVersion Include="Tmds.DBus.Protocol" Version="0.94.1" />
|
|
|
|
<!-- Hosting -->
|
|
<PackageVersion Include="Microsoft.Extensions.Hosting" Version="10.0.10" />
|
|
<PackageVersion Include="Microsoft.Extensions.Logging.Abstractions" Version="10.0.10" />
|
|
<PackageVersion Include="Microsoft.Extensions.Hosting.WindowsServices" Version="10.0.10" />
|
|
<PackageVersion Include="Microsoft.Extensions.Hosting.Systemd" Version="10.0.10" />
|
|
|
|
<!-- Logging (centralized Serilog configuration in Shared.Infrastructure) -->
|
|
<PackageVersion Include="Serilog" Version="4.4.0" />
|
|
<PackageVersion Include="Serilog.AspNetCore" Version="10.0.0" />
|
|
<PackageVersion Include="Serilog.Extensions.Hosting" Version="10.0.0" />
|
|
<PackageVersion Include="Serilog.Sinks.Console" Version="6.1.1" />
|
|
<PackageVersion Include="Serilog.Sinks.File" Version="7.0.0" />
|
|
<PackageVersion Include="Serilog.Formatting.Compact" Version="3.0.0" />
|
|
<PackageVersion Include="Serilog.Enrichers.Environment" Version="3.0.1" />
|
|
<PackageVersion Include="Microsoft.Extensions.Configuration.Abstractions" Version="10.0.10" />
|
|
|
|
<!-- Backend -->
|
|
<PackageVersion Include="AWSSDK.S3" Version="4.0.102" />
|
|
<PackageVersion Include="Cronos" Version="0.11.1" />
|
|
<PackageVersion Include="Microsoft.EntityFrameworkCore.Sqlite" Version="10.0.10" />
|
|
<PackageVersion Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="10.0.3" />
|
|
<PackageVersion Include="Microsoft.EntityFrameworkCore.SqlServer" Version="10.0.10" />
|
|
<PackageVersion Include="Microsoft.EntityFrameworkCore.Design" Version="10.0.10" />
|
|
<PackageVersion Include="Microsoft.IdentityModel.Protocols.OpenIdConnect" Version="8.22.0" />
|
|
<PackageVersion Include="System.DirectoryServices.Protocols" Version="10.0.12" />
|
|
<!-- PowerShell's parser for script param() import; the same line as the agent's SDK. -->
|
|
<PackageVersion Include="System.Management.Automation" Version="7.6.4" />
|
|
|
|
<!-- Agent -->
|
|
<PackageVersion Include="Microsoft.PowerShell.SDK" Version="7.6.4" />
|
|
<PackageVersion Include="System.ServiceProcess.ServiceController" Version="10.0.10" />
|
|
<PackageVersion Include="System.Management" Version="10.0.10" />
|
|
<PackageVersion Include="System.Security.Cryptography.ProtectedData" Version="10.0.10" />
|
|
<PackageVersion Include="Microsoft.Data.Sqlite" Version="10.0.10" />
|
|
<!-- Portable agent uses the host's system SQLite (no bundled e_sqlite3
|
|
native, which otherwise floors glibc at 2.33 — breaks Ubuntu 20.04 /
|
|
Debian 11). Windows/server keep the bundled e_sqlite3. -->
|
|
<PackageVersion Include="Microsoft.Data.Sqlite.Core" Version="10.0.10" />
|
|
<PackageVersion Include="SQLitePCLRaw.bundle_sqlite3" Version="2.1.11" />
|
|
|
|
<!-- Installer -->
|
|
<PackageVersion Include="WixToolset.Util.wixext" Version="5.0.2" />
|
|
<PackageVersion Include="WixToolset.UI.wixext" Version="5.0.2" />
|
|
<!-- Managed custom actions (src/Installer.CustomActions), the same WiX 5 line. -->
|
|
<PackageVersion Include="WixToolset.Dtf.CustomAction" Version="5.0.2" />
|
|
<PackageVersion Include="WixToolset.Dtf.WindowsInstaller" Version="5.0.2" />
|
|
|
|
<!-- Tests -->
|
|
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="18.8.1" />
|
|
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Testing" Version="10.0.10" />
|
|
<PackageVersion Include="xunit.v3" Version="3.2.2" />
|
|
<PackageVersion Include="xunit.runner.visualstudio" Version="3.1.5" />
|
|
<!-- The server MSI's SQL Server test against LocalDB (tests/Shared.Tests); the version EF Core's SQL Server provider brings to the server. -->
|
|
<PackageVersion Include="Microsoft.Data.SqlClient" Version="6.1.1" />
|
|
</ItemGroup>
|
|
</Project>
|