diff options
author | zsdc <taras@vyos.io> | 2021-11-09 18:50:13 +0200 |
---|---|---|
committer | zsdc <taras@vyos.io> | 2021-11-09 18:50:13 +0200 |
commit | 27d6d0983f953ff983f30fc9e656a33e6ef63d8f (patch) | |
tree | ba73fed10f8de6f87c17f1345f9e2e79d1503849 /data/live-build-config | |
parent | ee81272116cd680fd3b35497739f82be144b33a5 (diff) | |
download | vyos-build-27d6d0983f953ff983f30fc9e656a33e6ef63d8f.tar.gz vyos-build-27d6d0983f953ff983f30fc9e656a33e6ef63d8f.zip |
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.
Diffstat (limited to 'data/live-build-config')
-rwxr-xr-x | data/live-build-config/hooks/live/18-enable-disable_services.chroot | 1 | ||||
-rwxr-xr-x | data/live-build-config/hooks/live/22-rm_cron_atop.chroot | 6 |
2 files changed, 7 insertions, 0 deletions
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 + |