You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fixed
mureo service install on Windows no longer needs an elevated shell, and the task it registers no longer inherits settings that stop the daemon (#1075). The task was created with schtasks /SC ONLOGON, a logon trigger for any user, which Task Scheduler lets only an administrator register; a task registered from an elevated shell then could not be deleted from a normal one, and it inherited defaults that kept the daemon from starting on battery, stopped it when the computer switched to battery, and ended a logon-started daemon after 72 hours. install now registers the task from an XML definition (schtasks /Create /XML) whose logon trigger and principal are the installing user (the DOMAIN\user name read from the process token, not from %USERNAME%, which a process started as another account inherits from its parent), running with least privilege, with DisallowStartIfOnBatteries and StopIfGoingOnBatteries set to false, no run-time limit (ExecutionTimeLimitPT0S) and a second start ignored while one runs. install now also fails with task created, but starting it failed: … when schtasks /Run fails, and a failed uninstall, or a failed install over an existing task, appends how to remove a task registered from an elevated shell (schtasks messages are localized, so the guidance does not depend on the message text). To get the new task, run mureo service install again from a normal shell; if the old task was created from an elevated shell, first run mureo service uninstall once from a PowerShell opened via Run as administrator. See the Windows note under "Configure UI & Always-On Service" in docs/cli.md.