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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Douglas
slapos.package
Commits
fd2a05be
Commit
fd2a05be
authored
May 31, 2013
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up and polish the slapos-start script that was too frightening for newcomers.
parent
689cfad2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
slapos-node/slapos-start
slapos-node/slapos-start
+11
-7
No files found.
slapos-node/slapos-start
View file @
fd2a05be
...
@@ -17,24 +17,28 @@ if [ $ONLY_SLAPFORMAT = false ]; then
...
@@ -17,24 +17,28 @@ if [ $ONLY_SLAPFORMAT = false ]; then
echo
"Starting slap script"
echo
"Starting slap script"
# Check ipv4
# Check ipv4
ping
-c
2
$IPV4CHECK
echo
"Checking IPv4 connectivity..."
ping
-c
2
-o
$IPV4CHECK
>
/dev/null 2>&1
while
[
$?
!=
0
]
;
do
while
[
$?
!=
0
]
;
do
sleep
10
echo
"IPv4 is not ready yet."
ping
-c
2
$IPV4CHECK
sleep
2
ping
-c
2
-o
$IPV4CHECK
>
/dev/null 2>&1
done
done
# Launch openvpn
# Launch openvpn
if
[
-f
$SLAPOS_CONFIGURATION
/openvpn-needed
]
;
then
if
[
-f
$SLAPOS_CONFIGURATION
/openvpn-needed
]
;
then
echo
"Starting openvpn..."
/etc/init.d/openvpn start
/etc/init.d/openvpn start
sleep
10
fi
fi
# Wait for ipv6 connection to be ready
# Wait for ipv6 connection to be ready
ping6
-c
2
$IPV6CHECK
echo
"Checking IPv6 connectivity. This may take a few seconds..."
ping6
-c
2
-o
$IPV6CHECK
>
/dev/null 2>&1
while
[
$?
!=
0
]
;
while
[
$?
!=
0
]
;
do
do
sleep
10
echo
"IPv6 is not ready yet."
ping6
-c
2
$IPV6CHECK
sleep
2
ping6
-c
2
-o
$IPV6CHECK
>
/dev/null 2>&1
done
done
else
else
sleep
15
sleep
15
...
...
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