Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Python daemon not working

Featured Replies

I've been running a python daemon based upon: https://gist.github.com/dcai/1075904/6f7be00f7f411d5c2e7cd1691dcbb68efacb789c for some years (!) now, but since i've relocated (and rebooted) my unraid machine, the daemon won't start anymore? The calling code (look at demo code) calls daemon.start() and then should start self.run() where the actual code loop lives, but it looks like it doesn't get that far. Also no exceptions or anything. The pid is created, and i get back to the prompt... and when i stop the daemon (python democode.py stop) it does remove the pid file... but if i add print comments in daemon.start() etc it does not get executed... i'm running unraid 6.5.3, ever since it came out, and also the daemon ran without issues. Literally for years, also with previous versions. Also, if i rebooted, the go file just started the daemon as well without any issues, for years on end, but now... something is broken. I have no clue. Or does it have anything to do with python 2 becoming obsolete?

 

(The actual daemon checks my Pioneer Kuro for some settings and power modes)

  • Author

I think i'm gonna reuse my original code (it was ported from c# to python) and create an asp.net core (blazor) docker for this, and run this on unraid. I don't like python anyway. Language is nice but it is always complaining about tabs and spaces and indentation, what a joke.

  • 4 months later...
  • Author

Just discovered the user scripts plugin. Why no one pointed me to this i don't know, but that is a way nicer way to do these sort of things :)

  • 2 weeks later...
On 7/24/2020 at 3:44 PM, jowi said:

Just discovered the user scripts plugin. Why no one pointed me to this i don't know, but that is a way nicer way to do these sort of things :)

Do you need a custom version of Unraid with Python builtin?

If so please feel free to contact me and I will create you one and also will tell you how you can build it yourself ;)

 

EDIT: Oh and of course you also could use the Nerd Pack from the CA app to install Python... :D

 

  • Author

Yeah, i've installed python using nerd/devpack. So that is all ok :)

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.