From f9bff76a93ba8eb97a5a6d7926b0bde90240d7d5 Mon Sep 17 00:00:00 2001 From: Alexey Avramov Date: Fri, 24 Apr 2020 22:06:58 +0900 Subject: [PATCH] Update DEBIAN/control --- README.md | 4 ++-- deb/DEBIAN/control | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f794b9e..25bc2a9 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ Of course, you can also [download more RAM](https://downloadmoreram.com/), tune - Sending the SIGTERM signal is default corrective action. If the victim does not respond to SIGTERM, with a further drop in the level of memory it gets SIGKILL; - Customizing victim selection: impact on the badness of processes via matching their names, cgroups, exe realpathes, environs, cmdlines and euids with specified regular expressions; - Customizing corrective actions: if the name or control group of the victim matches a certain regex pattern, you can run any command instead of sending the SIGTERM signal (the default corrective action) to the victim. For example: - - `sysmemctl restart foo`; + - `systemctl restart foo`; - `kill -INT $PID` (you can override the signal sent to the victim, $PID will be replaced by the victim's PID). - GUI notifications: - Notification of corrective actions taken and displaying the name and PID of the victim; @@ -137,7 +137,7 @@ $ deb/build.sh Install the package: ```bash -$ sudo dpkg -i deb/package.deb +$ sudo apt install ./deb/package.deb ``` Start and enable `nohang.service` or `nohang-desktop.service` after installing the package: diff --git a/deb/DEBIAN/control b/deb/DEBIAN/control index 2bcdfe6..5758042 100644 --- a/deb/DEBIAN/control +++ b/deb/DEBIAN/control @@ -2,6 +2,8 @@ Package: nohang Version: 0.1 Section: admin Architecture: all +Depends: python3 +Recommends: libnotify-bin, sudo, logrotate Maintainer: Alexey Avramov Priority: optional Homepage: https://github.com/hakavlad/nohang