mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-22 09:58:09 +00:00
install: install criu-service logrotate config
Thank Vladimir Davydov <vdavidov@parallels.com> for help and config. Signed-off-by: Ruslan Kuprieiev <kupruser@gmail.com> Acked-by: Vladimir Davydov <vdavydov@parallels.com> Acked-by: Kir Kolyshkin <kir@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
3d940b0f18
commit
bf288e27a2
1
Makefile
1
Makefile
@ -250,6 +250,7 @@ install: $(PROGRAM) install-man
|
||||
$(Q) mkdir -p $(DESTDIR)$(SYSTEMDUNITDIR)
|
||||
$(Q) install -m 644 scripts/sd/criu.socket $(DESTDIR)$(SYSTEMDUNITDIR)
|
||||
$(Q) install -m 644 scripts/sd/criu.service $(DESTDIR)$(SYSTEMDUNITDIR)
|
||||
$(Q) install -m 644 scripts/logrotate.d/criu-service $(DESTDIR)$(LOGROTATEDIR)
|
||||
|
||||
install-man:
|
||||
$(Q) $(MAKE) -C Documentation install
|
||||
|
@ -15,6 +15,7 @@ PREFIX := /usr/local
|
||||
SBINDIR := $(PREFIX)/sbin
|
||||
MANDIR := $(PREFIX)/share/man
|
||||
SYSTEMDUNITDIR := $(PREFIX)/lib/systemd/system/
|
||||
LOGROTATEDIR := $(PREFIX)/etc/logrotate.d/
|
||||
LIBDIR := $(PREFIX)/lib
|
||||
# For recent Debian/Ubuntu with multiarch support
|
||||
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture \
|
||||
|
7
scripts/logrotate.d/criu-service
Normal file
7
scripts/logrotate.d/criu-service
Normal file
@ -0,0 +1,7 @@
|
||||
/var/log/criu-service.log {
|
||||
weekly
|
||||
rotate 4
|
||||
copytruncate
|
||||
notifempty
|
||||
missingok
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user