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:
Rajkumar Janakiraman 2020-10-15 15:42:39 -07:00 коммит произвёл GitHub
Родитель 7943de02f6
Коммит 921aecd2a7
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -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