Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
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
Romain Courteaud
slapos.package
Commits
5449acfa
Commit
5449acfa
authored
Jun 28, 2013
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update boot script to new entry points.
parent
7ff548cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
slapos-node/slapos-start
slapos-node/slapos-start
+6
-6
No files found.
slapos-node/slapos-start
View file @
5449acfa
...
...
@@ -46,15 +46,15 @@ fi
# Run slapformat
i
=
1
echo
-n
"Running slap
format..."
/opt/slapos/bin/slap
format
--now
--console
--log_file
=
/opt/slapos/slap
format.log
$SLAPOS_CONFIGURATION
/slapos.cfg
echo
-n
"Running slap
os node format..."
/opt/slapos/bin/slap
os node format
--now
--console
--log_file
=
/opt/slapos/log/slapos-node-
format.log
$SLAPOS_CONFIGURATION
/slapos.cfg
while
[
$?
!=
0
]
;
do
sleep
$((
$i
*
60
))
if
[
$i
-le
20
]
;
then
let
i++
fi
echo
"Retrying slapformat"
/opt/slapos/bin/slap
format
--now
--console
--verbose
--log_file
=
/opt/slapos/slap
format.log
$SLAPOS_CONFIGURATION
/slapos.cfg
echo
"Retrying slap
os node
format"
/opt/slapos/bin/slap
os node format
--now
--console
--verbose
--log_file
=
/opt/slapos/log/slapos-node-
format.log
$SLAPOS_CONFIGURATION
/slapos.cfg
done
if
[
$ONLY_SLAPFORMAT
=
false
]
;
then
...
...
@@ -75,8 +75,8 @@ if [ $ONLY_SLAPFORMAT = false ]; then
# Delete timestamp of all partitions so that it will force slapgrid to process them.
rm
/srv/slapgrid/slappart
*
/.timestamp 2>/dev/null
#
Run slapgrid now.
/opt/slapos/bin/slap
grid-cp
--verbose
--now
--logfile
=
/opt/slapos/slapgrid-cp
.log
--pidfile
=
/opt/slapos/slapgrid-cp.pid
$SLAPOS_CONFIGURATION
/slapos.cfg
>>
/opt/slapos/slapgrid-cp.log 2>&1
#
Start instances
/opt/slapos/bin/slap
os node instance
--verbose
--logfile
=
/opt/slapos/log/slapos-node-instance
.log
--pidfile
=
/opt/slapos/slapgrid-cp.pid
$SLAPOS_CONFIGURATION
/slapos.cfg
>>
/opt/slapos/slapgrid-cp.log 2>&1
fi
exit
0
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