That resolved my issues! Thanks a lot Vasil! Have a nice weekend.
Den fre 5 juni 2020 kl 12:18 skrev Vasil Velichkov <[email protected]>: > Hi Victor, > > On 05/06/2020 12.20, Victor Ortman wrote: > > Hi. > > > > I am having issues running gnuradio flowgraphs containg message passing > in > > a systemd context. > > > > I have tried running a minimal flowgraph only containing a message strobe > > and a message debug block. > > When I run it manually it works just fine, but when executed from a > systemd > > service the flowgraph restarts all the time. > > > > Here is some cutouts from journalctl: > > > > -- Logs begin at Wed 2019-01-02 04:42:01 CET, end at Fri 2020-06-05 > > 11:12:21 CEST. -- > > jun 05 11:12:13 fitlet2-001 python[32548]: Press Enter to quit: > > jun 05 11:12:12 fitlet2-001 systemd[1]: Started Message passing > flowgraph. > > jun 05 11:12:12 fitlet2-001 systemd[1]: Stopped Message passing > flowgraph. > > jun 05 11:12:12 fitlet2-001 systemd[1]: msgtest.service: Scheduled > restart > > job, restart counter is at 4. > > jun 05 11:12:12 fitlet2-001 systemd[1]: msgtest.service: Service hold-off > > time over, scheduling restart. > > jun 05 11:12:09 fitlet2-001 python[32532]: Press Enter to quit: > > When you start it as a service it can't read from the standard input and > raw_input raises an EOFError exception and the flowgraph terminates. > > tb.start() > try: > raw_input('Press Enter to quit: ') > except EOFError: > pass > tb.stop() > > To resolve this in the Options block set the "Run Options" to "Run to > Completion" and rebuild. > > $ diff -u msgtest.grc msgtest.new.grc > --- msgtest.grc 2020-06-05 13:02:49.846143560 +0300 > +++ msgtest.new.grc 2020-06-05 13:04:07.072710198 +0300 > @@ -66,7 +66,7 @@ > </param> > <param> > <key>run_options</key> > - <value>prompt</value> > + <value>run</value> > </param> > <param> > <key>run</key> > > > Regards, > Vasil >
