Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
reflectometry
django-remote-submission
Commits
5e57029c
Commit
5e57029c
authored
Mar 16, 2022
by
Jose Borreguero
Browse files
Check status of SSH daemon periodically
Signed-off-by:
Jose Borreguero
<
borreguero@gmail.com
>
parent
2574f278
Pipeline
#197002
passed with stages
in 5 minutes and 35 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
docker-entrypoint.sh
View file @
5e57029c
...
...
@@ -13,6 +13,8 @@ fi
# start the ssh daemon
/etc/init.d/ssh start
# hack preventing container from exiting
# uncomment only for debugging purposes
tail
-f
/dev/null
# check the deamon is up every 60 seconds
while
:
;
do
sleep
60
[[
"
$(
/etc/init.d/ssh status
)
"
=
"sshd is running."
]]
||
break
done
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