Thanks Charles. The configuration is here: https://github.com/mattvenn/machinekit-bipod
the supervisor conf is bipod.conf, it starts the start.sh shell script, which tries to sort out the environment before starting the linuxcnc process, which in turn uses bipod.py for the DISPLAY. I have now got this to work once, and I have a clue. If I start the process via supervisor, it looks fine but it can't read or write any of the gpios. If I kill it and start from the command line then I get this message: Starting again, the message goes away and everything is fine. If I then run it from supervisor, everything works as expected. Still digging... Matt On Monday, 1 August 2016 19:59:33 UTC+2, Charles Steinkuehler wrote: > > On 8/1/2016 10:08 AM, matthew venn wrote: > > I managed to resolve the locked memory error, and started machine kit > (at least > > no errors in the log). My python program (I'm not using axis) then > started, and > > started homing, but none of the motors moved and the enable led on my > board > > didn't light. > > Did the HAL file get read and started properly? You should be able to > see the HAL setup by poking around with halcmd after your python > program launches at startup. > > > As there's nothing arwy in the logs I've not got much to go on. After > killing > > the process and starting it as normal, everything works as expected. > > > > Any ideas why things aren't working non-interactively? > > Typically when things don't work properly when automated (cron, init > scripts, etc), but work as expected from the command line, the issue > is something to do with the environment. Check your path and any > other settings your python program may be relying on. > > Some programs are also sensitive to the terminal type, and don't like > being run in a non-interactive terminal or completely detached (with > no standard in/out/err). > > I'd have to see your launch script(s) for any more specific suggestions. > > -- > Charles Steinkuehler > [email protected] <javascript:> > -- website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit --- You received this message because you are subscribed to the Google Groups "Machinekit" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/group/machinekit. For more options, visit https://groups.google.com/d/optout.
