fix readme

This commit is contained in:
Alexey Avramov
2018-11-29 03:49:56 +09:00
parent 30efc340f1
commit 2bcd4298b1
3 changed files with 149 additions and 1 deletions

View File

@@ -11,6 +11,9 @@ install:
install -d $(DESTDIR)/$(PREFIX)/usr/sbin
install -m0755 ./nohang_notify_low_mem $(DESTDIR)/$(PREFIX)/usr/sbin/nohang_notify_low_mem
install -d $(DESTDIR)/$(PREFIX)/usr/bin
install -m0755 ./oom-top $(DESTDIR)/$(PREFIX)/usr/bin/oom-top
install -d $(DESTDIR)/$(PREFIX)/etc/nohang
install -m0644 ./nohang.conf $(DESTDIR)/$(PREFIX)/etc/nohang
install -m0644 ./nohang.conf.backup $(DESTDIR)/$(PREFIX)/etc/nohang
@@ -21,12 +24,12 @@ install:
install -d $(DESTDIR)/$(PREFIX)/lib/systemd/system
install -m0644 ./nohang.service $(DESTDIR)/$(PREFIX)/lib/systemd/system/nohang.service
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/sbin/nohang_notify_low_mem
rm -fv $(PREFIX)/usr/bin/oom-top
rm -fv $(PREFIX)/usr/share/man/man1/nohang.1.gz
rm -fv $(PREFIX)/lib/systemd/system/nohang.service
rm -fvr $(PREFIX)/etc/nohang/