October 20, 201213 yr I've written my first daemon in python small thingy that sends and receives IP commands from my Kuro KRP-600M plasma every 5 seconds to automate some stuff regarding frequency, resolution and specific drive modes, and also to automatically enable a power mode during daytime, and disable the powermode after 8:00 at night (more light output from the plasma!). I can start it by hand from the command line, but i want to start this daemon automatically on boot as well. Where do i start the daemon? In the /config/go script? Also, do i need to stop the daemon somewhere on power down? In the powerdown script maybe? Where is that located? Yes i can write a daemon in python on linux but i'm still pretty much in the dark OS wise
October 20, 201213 yr Put it in the go file for startup. If the daemon does not read or write to an array or cache drive you may not need to worry about shutdown. Otherwise a manual shut down procedure needs to be established until v5 is more mature.
October 20, 201213 yr Author Thanks, will place it there. It doesn't do anything special with data on disk(s), it just sends and receives IP commands every 5 seconds, and it can be killed without any problems.
Archived
This topic is now archived and is closed to further replies.