How to stop computer restart when closing Pathpilot

More
20 Mar 2017 23:09 #89975 by remartinez
Need a little help!!!

After I updated Pathpilot, the computer restarts every time I close Pathpilot. I can not figure out how to stop the computer from restarting.
Do any of you guys know how to stop this from happening?

Regards,
Raul

Please Log in or Create an account to join the conversation.

More
21 Mar 2017 19:53 #90026 by smgvbest
there are several ways you can do this, the one I use it comment out the shutdown command
in operator_login search for "function shutdown_controller" and comment out the $SHUTDOWN_COMMAND
function shutdown_controller {
  tty_echo "terminating log rotator and subprocesses"
  killtree.sh $LOGROTATOR_PID KILL
  # if running from a terminal exit without shutdown and start the gnome-panel
  if tty -s; then
    start_gnome_panel
    #tty_echo "\n\nExiting script instead of shutting down controller . . .\n"
    exit 0
  fi
  # allow override of shutdown if not in a terminal
  sleep 2
  check_shift_alt
  #$SHUTDOWN_COMMAND   << COMMENT THIS LINE OUT
}

you could also do something like

finding this line in operator_login
SHUTDOWN_PROG=`which shutdown`
change it to
SHUTDOWN_PROG=`which true`

that would prevent it from finding shutdown

another if you don't want to edit operator_login would be to
sudo mv /bin/shutdown /bin/shutitdown or and name you want
sudo touch /bin/shutdown
sudo chmod 1755 /bin/shutdown

then you have to remember to do a shutitdown if you want to use the old shutdown

Please Log in or Create an account to join the conversation.

More
22 Mar 2017 23:02 - 22 Mar 2017 23:03 #90094 by remartinez
smgvbest,

Thank you for your help. It worked perfect.


Regards,
Raul
Last edit: 22 Mar 2017 23:03 by remartinez.

Please Log in or Create an account to join the conversation.

More
24 Mar 2017 19:45 #90225 by Andyf97
Shift+alt on boot will drop you to Gnome instead of the PathPilot application, then you can remove pathpilot from auto starting up at bootup and use all the features of ubuntu just like any other computer. Doing this also stops the machine to re-start at exit of pathpilot.

I have a shortcut on the ubuntu desktop to start pathpilot. I can acces the internmet, print files, copy g-code from my cad computer directly to the foilder pathpailoit uses for g-code.

Makes my life a dam hell of easier.

Please Log in or Create an account to join the conversation.

More
22 May 2017 19:25 #93499 by bw4257
How do you create the shortcut or more specifically start pathpilot from the desktop?

I tried opening a terminal and typing "linuxcnc" but that gave me an error about path not found or something of that nature.

Sorry to hijack this thread, but this was as closely related to my question as I was able to find ;)

Please Log in or Create an account to join the conversation.

More
22 May 2017 20:26 - 22 May 2017 20:30 #93504 by Andyf97
Create a shortcut on the desktop with these properties.



Attachments:
Last edit: 22 May 2017 20:30 by Andyf97.
The following user(s) said Thank You: bw4257

Please Log in or Create an account to join the conversation.

Moderators: cncbasher
Time to create page: 0.198 seconds
Powered by Kunena Forum