How to use a pythonSoftIOC script with systemd? #113
-
Hi, Has anyone tried launching pythonSoftIOC as a daemon with systemd? Is it possible to use Procserv while using pythonSoftIOC? Thanks in advance. Abhik |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes, you should have no problem running your IOC under procServ, we do that all the time at DLS. I imagine what is happening at the moment is that your IOC is being launched with stdin connected to So either remove the interactive shell (if you're using cothread you can block with |
Beta Was this translation helpful? Give feedback.
Yes, you should have no problem running your IOC under procServ, we do that all the time at DLS. I imagine what is happening at the moment is that your IOC is being launched with stdin connected to
/dev/null
, is trying to read (because you've enabled the interactive shell), receiving EOF and terminating. To be honest, this is as expected!So either remove the interactive shell (if you're using cothread you can block with
cothread.WaitForQuit()
instead), or more usefully, run under procServ.