diff --git a/atop-rotate.service b/atop-rotate.service index dbe8e0f..c2783b8 100644 --- a/atop-rotate.service +++ b/atop-rotate.service @@ -4,4 +4,4 @@ Documentation=man:atop(1) [Service] Type=oneshot -ExecStart=/usr/bin/systemctl restart atop.service +ExecStart=/usr/bin/systemctl try-restart atop.service diff --git a/atop.service b/atop.service index 3e5bafd..aff65c8 100644 --- a/atop.service +++ b/atop.service @@ -1,6 +1,9 @@ [Unit] Description=Atop advanced performance monitor Documentation=man:atop(1) +# If you want to disable automatic rotation of logs, +# run "systemctl mask atop-rotate.timer" +Wants=atop-rotate.timer [Service] Type=simple