/home/ubuntu/afterRestart /usr/bin/dotnet /home/ubuntu/path_to_dll
- nano /etc/supervisor/supervisord.conf
- and type at the end this:
[program:kai_worker]
directory=/root/FAQ_KAI_Bot
command=python3 start.py
;command=nohup python3 start.py >>/root/FAQ_KAI_Bot/log.txt 2>&1
stdout_logfile=/var/log/kai_worker.log
stderr_logfile =/var/log/kai_worker.log
autostart=true
autorestart=true
user=root
stopsignal=KILL
numprocs=1
- do /etc/init.d/supervisor restart
- to check status use command supervisorctl
cd /home/ubuntu/
cat tg > del
curl checkip.amazonaws.com >> del
cat del | tr -s '\r\n' ' ' > del2
wget -i del2
[https://www.cyberciti.biz/faq/linux-execute-cron-job-after-system-reboot/] ...
- make hyperv enabled
- do extenal switch
- type by admin
choco install docker -y
choco install docker-machine -y
choco install docker-for-windows -y
docker-machine create --driver hyperv default
docker-machine env
- DO what the last line says!
- Сheers!!! :) You can
docker run --interactive --tty ubuntu bash
see https://github.com/ayazzali/convert_audio_message_to_text__bot/blob/master/README.md
or https://github.com/ayazzali/FAQ_KAI_Bot
and https://gist.github.com/ayazzali/172e8ee7b9470cf234505054dbc8c334