Jump to content

Need to restart device to see updates in my module


Recommended Posts

Hi people!


I'm not entirely familiar with this kind of device, and I'll be much appreciated if someone can help me out.

I started to write a module and encountered the next issue. I need to restart the device every time I install pkg or update my module files to see my changes. I'm talking right now more about Python files. I thought that there might be .pyc file somewhere that I need to delete, but I didn't found any.

What I'm doing wrong? Or restarting device is the only way? If so, it's really slowing down the process. 

Link to comment
Share on other sites

  • 4 months later...

I apologise for not seeing this sooner, just came across it now.

The web interface will automatically start the module's Python back-end automatically, so if you want to debug it, I suggest you SSH into the device and kill it (use ps auxw to find the process) and then run it manually. This will allow you to restart it quickly every time you push an updated file to the device, as well as being able to see the debug output. 

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...