Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Guillaume Hervier
slapos.toolbox
Commits
303ee9b9
Commit
303ee9b9
authored
Feb 27, 2012
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Now slapformat is relaunch till it work,
the intervall between restarts increase from 1 min to 20 min maximum
parent
fb4f5d39
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
slapos/builder/script/slapos
slapos/builder/script/slapos
+10
-0
No files found.
slapos/builder/script/slapos
View file @
303ee9b9
...
...
@@ -112,8 +112,18 @@ sysctl -w \
net.ipv6.neigh.default.gc_thresh3
=
2048
# Execute slapformat
i
=
1
echo
-n
"Running slapformat..."
/opt/slapos/bin/slapformat
--verbose
--console
/etc/slapos/slapos.cfg
while
[[
$?
!=
0
]]
;
do
sleep
$((
$i
*
60
))
if
[[
$i
< 20
]]
;
then
let
i++
fi
echo
"Retrying slapformat"
/opt/slapos/bin/slapformat
--verbose
--console
/etc/slapos/slapos.cfg
# if slapformat fail more than 10 time the script is restarted
done
echo
"done."
echo
-n
"Banging..."
/opt/slapos/bin/bang
-m
"Rebooted"
/etc/slapos/slapos.cfg
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment