Archived
fix: restart web/UI services before sessiond in restart commands
Running the suggested restart command from a PI WEB terminal kills the command when sessiond restarts, so services listed after sessiond were never restarted. Restart web/UI first in both the updates plugin's suggested command and `pi-web restart` (systemd and launchd).
This commit is contained in:
@@ -71,7 +71,7 @@ describe("PI WEB status", () => {
|
||||
|
||||
const status = await getPiWebStatus(daemon);
|
||||
|
||||
expect(status.commands.restart).toBe("systemctl --user restart pi-web-sessiond.service pi-web-ui-dev.service");
|
||||
expect(status.commands.restart).toBe("systemctl --user restart pi-web-ui-dev.service pi-web-sessiond.service");
|
||||
expect(status.commands.restartWeb).toBe("systemctl --user restart pi-web-ui-dev.service");
|
||||
expect(status.commands.restartSessiond).toBe("systemctl --user restart pi-web-sessiond.service");
|
||||
expect(status.messages.find((message) => message.id === "sessiond-stale")?.command).toBe("systemctl --user restart pi-web-sessiond.service");
|
||||
|
||||
Reference in New Issue
Block a user