From 27d6d0983f953ff983f30fc9e656a33e6ef63d8f Mon Sep 17 00:00:00 2001 From: zsdc Date: Tue, 9 Nov 2021 18:50:13 +0200 Subject: atop: T3774: Disabled atop services To take all the control over atop service and log files original atop-rotate.timer with cron entry was disabled/removed. --- data/live-build-config/hooks/live/18-enable-disable_services.chroot | 1 + data/live-build-config/hooks/live/22-rm_cron_atop.chroot | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100755 data/live-build-config/hooks/live/22-rm_cron_atop.chroot (limited to 'data') diff --git a/data/live-build-config/hooks/live/18-enable-disable_services.chroot b/data/live-build-config/hooks/live/18-enable-disable_services.chroot index ee3b38bf..a67d8c2e 100755 --- a/data/live-build-config/hooks/live/18-enable-disable_services.chroot +++ b/data/live-build-config/hooks/live/18-enable-disable_services.chroot @@ -51,6 +51,7 @@ systemctl disable ndppd.service systemctl disable ipsec.service systemctl disable strongswan-starter.service systemctl disable avahi-daemon.service +systemctl disable atop-rotate.timer echo I: Enabling services systemctl enable ssh-session-cleanup.service diff --git a/data/live-build-config/hooks/live/22-rm_cron_atop.chroot b/data/live-build-config/hooks/live/22-rm_cron_atop.chroot new file mode 100755 index 00000000..7f77e1f7 --- /dev/null +++ b/data/live-build-config/hooks/live/22-rm_cron_atop.chroot @@ -0,0 +1,6 @@ +#!/bin/sh + +if [ -f /etc/cron.d/atop ]; then + rm -f /etc/cron.d/atop +fi + -- cgit v1.2.3