chore: changing "restart" to "start" of sshd server (#613)
* chore: changing "restart" to "start" of sshd server pid file of the sshd server gets saved in the container. When it is restarted on a different VM, the pid is different and that process gets killed. This results in random process kills and failure of about 10% of the resumes. Fix is to change "restart" to "start" so that no process gets killed as container doesn't have any processes at that time. * Making the same change in the script folder as well.
This commit is contained in:
Родитель
7943de02f6
Коммит
921aecd2a7
|
@ -86,9 +86,9 @@ tee /usr/local/share/ssh-init.sh > /dev/null \
|
|||
set -e
|
||||
|
||||
if [ "\$(id -u)" -ne 0 ]; then
|
||||
sudo /etc/init.d/ssh restart
|
||||
sudo /etc/init.d/ssh start
|
||||
else
|
||||
/etc/init.d/ssh restart
|
||||
/etc/init.d/ssh start
|
||||
fi
|
||||
|
||||
set +e
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"definitionVersion": "0.19.0",
|
||||
"definitionVersion": "0.19.1",
|
||||
"build": {
|
||||
"latest": true,
|
||||
"rootDistro": "debian",
|
||||
|
|
|
@ -86,9 +86,9 @@ tee /usr/local/share/ssh-init.sh > /dev/null \
|
|||
set -e
|
||||
|
||||
if [ "\$(id -u)" -ne 0 ]; then
|
||||
sudo /etc/init.d/ssh restart
|
||||
sudo /etc/init.d/ssh start
|
||||
else
|
||||
/etc/init.d/ssh restart
|
||||
/etc/init.d/ssh start
|
||||
fi
|
||||
|
||||
set +e
|
||||
|
|
Загрузка…
Ссылка в новой задаче