The best way would be if LinuxCNC were to catch the SIGTERM signal and stop
the motors (e-stop?) write whatever files it needs to write.  It should be
doing this now.  I don't know but.

When Linux is shutting down the init process sends SIGTERM to all
running processes to tell them they will shortly be terminated.  There
should be a SIGTERM handler in Linux CNC,, but I don't know.    It would be
easy to "grep" the source tree for "SIGTERM"



On Thu, Apr 15, 2021 at 9:30 AM Billy Huddleston <[email protected]> wrote:

> Setting up a LinuxCNC box, more or less in a Kiosk mode.  I have it so
> when it boots up, it loads LinuxCNC (Axis) in FULLSCREEN, not Maximized.  I
> want to add 2 buttons on the
> right hand side that lets you reboot & shutdown the system.  I've been
> told it's not a good idea to simply reboot without exiting LInuxCNC because
> it needs to write stuff to files
> before it does.  Can someone provide some insight on best way to
> accomplish this?
>
> Close LinuxCNC, then Reboot or Shutdown depending on the button pressed?
>
> Thanks!
>
>
>
>
> _______________________________________________
> Emc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-users
>


-- 

Chris Albertson
Redondo Beach, California

_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to