parent
51f74e37b8
commit
93be688e6c
1 changed files with 6 additions and 0 deletions
|
|
@ -917,6 +917,12 @@ const cmds = struct {
|
||||||
}
|
}
|
||||||
pub const restart_meta: Meta = .{ .description = "Restart (without saving)" };
|
pub const restart_meta: Meta = .{ .description = "Restart (without saving)" };
|
||||||
|
|
||||||
|
pub fn restart_with_sudo(_: *Self, _: Ctx) Result {
|
||||||
|
root.set_restart_with_sudo();
|
||||||
|
try tp.self_pid().send("restart");
|
||||||
|
}
|
||||||
|
pub const restart_with_sudo_meta: Meta = .{ .description = "Restart with sudo" };
|
||||||
|
|
||||||
pub fn force_terminate(self: *Self, _: Ctx) Result {
|
pub fn force_terminate(self: *Self, _: Ctx) Result {
|
||||||
self.deinit();
|
self.deinit();
|
||||||
root.print_exit_status({}, "FORCE TERMINATE");
|
root.print_exit_status({}, "FORCE TERMINATE");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue