Hello,

Thanks - is that the best way? I think a best practice is to add --restart unless-stopped to your tutorial docker run command so it looks like:

docker run -d --restart unless-stopped --name kms -p 8888:8888 --mount type=bind,source=/opt/open510/webapps/openmeetings/data,target=/opt/open510/webapps/openmeetings/data kurento/kurento-media-server

This is on debian buster. Thus kms won't automatically restart if you stop it, but it will auto-restart if the server is rebooted or docker itself is restarted.

I have tested this and it works great!

Ed

Le 2021-02-01 20:34, Alvaro a écrit :
For docker:

sudo systemctl enable docker.service

...and for kms you can add it in the script we
made. Then the script will look so:

#!/bin/bash
docker start kms
/etc/init.d/tomcat3 start

...am thinking you are in Ubuntu 20.04 ???

..................


El lun, 01-02-2021 a las 19:07 +0000, Alvaro escribió:
Hi Ed,

It i do to run OpenMeetings when turn on the machine
or reboot it is:

sudo nano /etc/init.d/boot

...paste the 2 following lines:

#!/bin/bash
/etc/init.d/tomcat3 start

...push Ctrl+X, will ask to save then press Y,
and Enter to exit nano editor.

Now give execution permission to this script:

sudo +x /etc/init.d/boot

...and now a symlink:

ln -s /etc/init.d/boot /etc/rc3.d/S98boot


Works for me.




El lun, 01-02-2021 a las 18:18 +0100, [email protected]
escribió:
> Hello,
>
> Does anyone have a best practice for autostarting kms inside
> docker
> whenever there is a docker or server restart?
>
> Could you share it please?
>
> Also, for tomcat3 to restart automatically on reboot I had to add
> the
> following symlinks:
>
> ln -s /etc/init.d/tomcat3 /etc/rc0.d/K01tomcat3
> ln -s /etc/init.d/tomcat3 /etc/rc1.d/K01tomcat3
> ln -s /etc/init.d/tomcat3 /etc/rc6.d/K01tomcat3
> ln -s /etc/init.d/tomcat3 /etc/rc2.d/S01tomcat3
> ln -s /etc/init.d/tomcat3 /etc/rc3.d/S01tomcat3
> ln -s /etc/init.d/tomcat3 /etc/rc4.d/S01tomcat3
> ln -s /etc/init.d/tomcat3 /etc/rc5.d/S01tomcat3
>
> Does anyone ahve abetter way to enable tomcat autorestart on
> server
> reboot?  If so, could you share it please?
>
> Thanks,
>
> Ed

Reply via email to