arna | kutuc0m™

  • Home
  • Python
  • Visual Studio 2008
  • Linux

Sabtu, 22 Juli 2017

Koding Python auto Startup di Raspberry Pi

Diposting oleh dor Label: Linux , Mikrokontroler , Python , 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

            Tweet

            Tidak ada komentar :

            Posting Komentar

            Posting Lama Beranda
            Langganan: Posting Komentar ( Atom )

            Like us on Facebook

            Haryan Dwi Baharna

            Buat Lencana Anda
            Diberdayakan oleh Blogger.

            Categories

            • AVR Studio
            • Django
            • GUI
            • HMC5883L
            • Linux
            • Mikrokontroler
            • Mikroprosessor
            • News
            • PyQT4
            • Python
            • Raspberry Pi
            • Tkinter
            • tutorial
            • Visual Studio 2008

            © arna | kutuc0m™ 2013 . Powered by Bootstrap , Blogger templates and RWD Testing Tool Published..Gooyaabi Templates