Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
aports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
alpine
aports
Commits
2ac9b232
Commit
2ac9b232
authored
3 years ago
by
Patrycja Rosa
Committed by
alice
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
main/atop: run in background from cron job
parent
1e8cc0b1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!31542
main/atop: run in background from cron job, modernize
Pipeline
#118103
canceled
2 years ago
Stage: lint
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
main/atop/APKBUILD
+3
-1
3 additions, 1 deletion
main/atop/APKBUILD
main/atop/make-cron-background.patch
+28
-0
28 additions, 0 deletions
main/atop/make-cron-background.patch
with
31 additions
and
1 deletion
main/atop/APKBUILD
+
3
−
1
View file @
2ac9b232
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname
=
atop
pkgname
=
atop
pkgver
=
2.7.1
pkgver
=
2.7.1
pkgrel
=
0
pkgrel
=
1
pkgdesc
=
"Resource-specific view of processes"
pkgdesc
=
"Resource-specific view of processes"
url
=
"https://www.atoptool.nl/"
url
=
"https://www.atoptool.nl/"
arch
=
"all"
arch
=
"all"
...
@@ -11,6 +11,7 @@ subpackages="$pkgname-doc $pkgname-openrc"
...
@@ -11,6 +11,7 @@ subpackages="$pkgname-doc $pkgname-openrc"
source
=
"https://www.atoptool.nl/download/atop-
$pkgver
.tar.gz
source
=
"https://www.atoptool.nl/download/atop-
$pkgver
.tar.gz
atop-daily-bb.patch
atop-daily-bb.patch
atop-include-macros.patch
atop-include-macros.patch
make-cron-background.patch
atop.initd
atop.initd
"
"
options
=
"suid !check"
options
=
"suid !check"
...
@@ -44,5 +45,6 @@ sha512sums="
...
@@ -44,5 +45,6 @@ sha512sums="
f5013dbc25b86f07c9892555705bb3db2eeb949478f53e6e5545308b0c7c173c4c7a8ed0eae1f173e075210f81fceee09d7a9d90de76c4f011e38ad4a76b780b atop-2.7.1.tar.gz
f5013dbc25b86f07c9892555705bb3db2eeb949478f53e6e5545308b0c7c173c4c7a8ed0eae1f173e075210f81fceee09d7a9d90de76c4f011e38ad4a76b780b atop-2.7.1.tar.gz
664225450074962aac0e13484c9b2feaf08620bbe1e0f9c5dc1b02f1ecd315224cd04df53134f2d107210fc9223a64d8885ae70d33d0663c2335fa6d46f6ddfd atop-daily-bb.patch
664225450074962aac0e13484c9b2feaf08620bbe1e0f9c5dc1b02f1ecd315224cd04df53134f2d107210fc9223a64d8885ae70d33d0663c2335fa6d46f6ddfd atop-daily-bb.patch
f30c9e6051332af8c8cafcd881f89a0e2d2a8e1d84eee8ac0c8c6b58f3ae3431fcf9c40dea6d03e271f8969802de449d33b4323c13045bdb38a539732c81a8b6 atop-include-macros.patch
f30c9e6051332af8c8cafcd881f89a0e2d2a8e1d84eee8ac0c8c6b58f3ae3431fcf9c40dea6d03e271f8969802de449d33b4323c13045bdb38a539732c81a8b6 atop-include-macros.patch
e563894eceadf63ff153714829218b8f78dd21a129b90817960bdb4452768f41ed884dc9967f94b979e42f04d6434fcbd423bcf1651976a5ad60c34b206ce7e9 make-cron-background.patch
172c9d367b936427ccbbbd1140c7808ec8ffe3194b3557ba024820dac8fa68c9919f7dc34d332e91283fde64d731db7bdbfee3c2d6caad3cd291e0f1c227cb03 atop.initd
172c9d367b936427ccbbbd1140c7808ec8ffe3194b3557ba024820dac8fa68c9919f7dc34d332e91283fde64d731db7bdbfee3c2d6caad3cd291e0f1c227cb03 atop.initd
"
"
This diff is collapsed.
Click to expand it.
main/atop/make-cron-background.patch
0 → 100644
+
28
−
0
View file @
2ac9b232
From a2cd8d902a833e5bec024e81d6361684c1f84e4b Mon Sep 17 00:00:00 2001
From: ptrcnull <git@ptrcnull.me>
Date: Tue, 1 Mar 2022 15:33:05 +0100
Subject: [PATCH] Make daily atop cron job run in the background
---
atop.daily | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/atop.daily b/atop.daily
index 55737fd..5e18650 100755
--- a/atop.daily
+++ b/atop.daily
@@ -57,8 +57,7 @@
fi
#
( (sleep 3; find "$LOGPATH" -name 'atop_*' -mtime +"$LOGGENERATIONS" -exec rm {} \;)& )
-# activate atop with an interval of S seconds (configurable),
-# replacing the current shell
+# activate atop with an interval of S seconds (configurable)
#
-echo $$ > $PIDFILE
-exec $BINPATH/atop $LOGOPTS -w "$LOGPATH"/atop_"$CURDAY" "$LOGINTERVAL" > "$LOGPATH/daily.log" 2>&1
+$BINPATH/atop $LOGOPTS -w "$LOGPATH"/atop_"$CURDAY" "$LOGINTERVAL" > "$LOGPATH/daily.log" 2>&1 &
+echo $! > $PIDFILE
--
2.35.1
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment