diff --git a/Makefile b/Makefile index 758f769..519e3cf 100644 --- a/Makefile +++ b/Makefile @@ -7,9 +7,7 @@ all: install: install -d $(DESTDIR)/$(PREFIX)/usr/sbin install -m0755 ./nohang $(DESTDIR)/$(PREFIX)/usr/sbin/nohang - - install -d $(DESTDIR)/$(PREFIX)/usr/bin - install -m0755 ./nohang_notify_helper $(DESTDIR)/$(PREFIX)/usr/bin/nohang_notify_helper + install -m0755 ./nohang_notify_helper $(DESTDIR)/$(PREFIX)/usr/sbin/nohang_notify_helper install -d $(DESTDIR)/$(PREFIX)/usr/bin install -m0755 ./oom-sort $(DESTDIR)/$(PREFIX)/usr/bin/oom-sort @@ -31,7 +29,7 @@ uninstall: # 'make uninstall' must not fail with error if systemctl is unavailable or returns error systemctl disable nohang.service || true rm -fv $(PREFIX)/usr/sbin/nohang - rm -fv $(PREFIX)/usr/bin/nohang_notify_helper + rm -fv $(PREFIX)/usr/sbin/nohang_notify_helper rm -fv $(PREFIX)/usr/bin/oom-sort rm -fv $(PREFIX)/usr/bin/oom-trigger rm -fv $(PREFIX)/usr/share/man/man1/nohang.1.gz diff --git a/nohang b/nohang index 83a5f83..d1920ef 100755 --- a/nohang +++ b/nohang @@ -24,7 +24,7 @@ wait_time = 14 max_sleep_time = 2 min_sleep_time = 0.1 -notify_helper_path = '/usr/bin/nohang_notify_helper' +notify_helper_path = '/usr/sbin/nohang_notify_helper' psi_path = '/proc/pressure/memory' psi_support = os.path.exists(psi_path)