fix(nix-monitor): kill both children and parent job, just to be safe

This commit is contained in:
avivbintangaringga
2026-07-15 22:54:33 +07:00
parent 5dfc59cadb
commit a1d9a0c4bb
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ function killWithPidFile(file)
local pid = noctalia.string.trim(noctalia.readFile(file)) local pid = noctalia.string.trim(noctalia.readFile(file))
if type(pid) == "string" and pid ~= "" then if type(pid) == "string" and pid ~= "" then
noctalia.runAsync(`pkill -9 -P {pid}`) noctalia.runAsync(`pkill -9 -P {pid} && kill -9 {pid}`)
end end
noctalia.removeFile(file) noctalia.removeFile(file)
end end
+1 -1
View File
@@ -6,7 +6,7 @@ icon = "package"
author = "avivbintangaringga" author = "avivbintangaringga"
description = "Nixpkgs update monitor" description = "Nixpkgs update monitor"
tags = [ "nixos", "utility" ] tags = [ "nixos", "utility" ]
dependencies = [ "nix", "nixos-version", "nixos-rebuild", "git", "du", "cat", "awk", "grep", "tail", "wc", "pkill" ] dependencies = [ "nix", "nixos-version", "nixos-rebuild", "git", "du", "cat", "awk", "grep", "tail", "wc", "kill", "pkill" ]
license = "MIT" license = "MIT"
[[widget]] [[widget]]