I'm running my RPi 'headless' with my laptop using wifi. The RPi is connected to the router with a LAN cable. I need to start the RPi running and leave - with my laptop. I'm currently using MobaXterm and SSH sessions to program the RPi. Eventually, the unit will manage a residential solar power station and I need full automation. If I turn the software into a daemon will that work? My current experience is that turning off MobaXterm shutsdown the program I'm running. Would a daemon keep on running? I have a choice between to management programs, one in PHP and one in Python.
Thank you, I decided to use systemd to make a service/daemon because cron will not perform under some system conditions. This is after I did some more research. If I do all the work, why do I need the Stack?
UPDATE: Since this post, I've developed the knowledge and skills to write services and timers. I believe sysvinit and cron to eventually becom deprecated and archaic. I subsequently learned to use systemd services and timers. I use setsid for some testing, but scripts that run successfully in setsid, will not do so as a service. I know, I just discovered that tidbit of knowledge. Services and timers with systemd are the future of automation in Raspbian, I believe, or at least from what I can tell form all the reading I've done on the internet.
The "Thank you" I wrote, was, in a response to someone who begrudged my asking for help. I appreciate help in the form of advice from an understanding of the problem, not quips from someone who wants to wants to project their shortcomings onto me.