Sabtu, 22 Juli 2017
Koding Python auto Startup di Raspberry Pi
Intstall supervisor dengan perintah apt-get install supervisor
Buat file konfigurasi sudo nano /etc/supervisor/conf.d/long_script.conf
Masuk text konfigurasi dibawah dan simpan
[program:web_request]
command=python /home/pi/python/web_requests.py
autostart=true
autorestart=true
stderr_logfile=/var/log/web_request_err.log
stdout_logfile=/var/log/web_request_out.log
sudo supervisorctl reread
sudo supervisorctl reload
Langganan:
Posting Komentar
(
Atom
)
© arna | kutuc0m™ 2013 . Powered by Bootstrap , Blogger templates and RWD Testing Tool Published..Gooyaabi Templates
Tidak ada komentar :
Posting Komentar