Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Data Logistics Service
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eFlows4HPC WP2
Data Logistics Service
Commits
f433c5a8
Commit
f433c5a8
authored
3 years ago
by
Christian Boettcher
Browse files
Options
Downloads
Patches
Plain Diff
setup deletion of old logs (>2 weeks)
parent
307c37cd
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/cloudinit.yml
+1
-0
1 addition, 0 deletions
scripts/cloudinit.yml
with
1 addition
and
0 deletions
scripts/cloudinit.yml
+
1
−
0
View file @
f433c5a8
...
@@ -62,6 +62,7 @@ runcmd:
...
@@ -62,6 +62,7 @@ runcmd:
-
echo "Current user is $(whoami)"
-
echo "Current user is $(whoami)"
-
sudo -u airflow git clone https://gitlab.jsc.fz-juelich.de/eflows4hpc-wp2/data-logistics-service.git ./data-logistics-service
-
sudo -u airflow git clone https://gitlab.jsc.fz-juelich.de/eflows4hpc-wp2/data-logistics-service.git ./data-logistics-service
-
cd ./data-logistics-service
-
cd ./data-logistics-service
-
crontab -l | { cat ; echo '@daily root find /persistent_data/logs -mtime +13 -type f -delete'; } | crontab -
# setup log clearing crontab
-
touch /finished_cloudinit
-
touch /finished_cloudinit
final_message
:
"
The
system
is
finally
up,
after
$UPTIME
seconds"
final_message
:
"
The
system
is
finally
up,
after
$UPTIME
seconds"
\ No newline at end of file
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