fix Makefile

This commit is contained in:
Alexey Avramov 2019-01-23 00:10:20 +09:00
parent f872aa4cf4
commit 9976094164
2 changed files with 3 additions and 5 deletions

View File

@ -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

2
nohang
View File

@ -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)