Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NoCloud-Auto-Installer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NoCloud
NoCloud-Auto-Installer
Commits
b018dab5
Verified
Commit
b018dab5
authored
10 months ago
by
David Beniamine
Browse files
Options
Downloads
Patches
Plain Diff
WIP to test add systemd boot order service
parent
ec4d210e
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
etc/systemd/system/docker-order.service
+11
-0
11 additions, 0 deletions
etc/systemd/system/docker-order.service
upgrade/Traefik.sh
+7
-0
7 additions, 0 deletions
upgrade/Traefik.sh
utils/restart_containers.sh
+10
-0
10 additions, 0 deletions
utils/restart_containers.sh
with
28 additions
and
0 deletions
etc/systemd/system/docker-order.service
0 → 100644
+
11
−
0
View file @
b018dab5
[Unit]
Description
=
Docker order service
Requires
=
docker.service
After
=
docker.service
[Service]
Restart
=
always
ExecStart
=
/opt/NoCloud-Auto-Installer/utils/restart_containers.sh
[Install]
WantedBy
=
default.target
This diff is collapsed.
Click to expand it.
upgrade/Traefik.sh
+
7
−
0
View file @
b018dab5
...
...
@@ -3,6 +3,13 @@
echo
"RUN
$(
basename
"
$0
"
)
==="
.
$(
dirname
"
$0
"
)
/../main.env
# Add systemd script to control container boot order
order_systemd_file
=
"/etc/systemd/system/docker-order.service"
if
[
!
-e
"
$order_systemd_file
"
]
;
then
cp
${
DIR
}${
order_systemd_file
}
$order_systemd_file
systemctl daemon reload
fi
# Services maintenance
cd
/home/dockerweb
...
...
This diff is collapsed.
Click to expand it.
utils/restart_containers.sh
0 → 100755
+
10
−
0
View file @
b018dab5
#!/bin/bash
echo
"RUN
$(
basename
"
$0
"
)
==="
services
=
$(
docker ps
-q
)
echo
$services
| xargs docker stop
docker start traefik
cd
/home/dockerweb/maintenance
docker-compose up
-d
echo
$services
| xargs docker start
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
sign in
to comment