fix(nix-monitor): kill both children and parent job, just to be safe
This commit is contained in:
@@ -26,7 +26,7 @@ function killWithPidFile(file)
|
||||
local pid = noctalia.string.trim(noctalia.readFile(file))
|
||||
|
||||
if type(pid) == "string" and pid ~= "" then
|
||||
noctalia.runAsync(`pkill -9 -P {pid}`)
|
||||
noctalia.runAsync(`pkill -9 -P {pid} && kill -9 {pid}`)
|
||||
end
|
||||
noctalia.removeFile(file)
|
||||
end
|
||||
|
||||
@@ -6,7 +6,7 @@ icon = "package"
|
||||
author = "avivbintangaringga"
|
||||
description = "Nixpkgs update monitor"
|
||||
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"
|
||||
|
||||
[[widget]]
|
||||
|
||||
Reference in New Issue
Block a user