How to stop computer restart when closing Pathpilot

More
9 years 7 months ago #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 to join the conversation.

More
9 years 7 months ago #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
Code:
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 to join the conversation.

More
9 years 7 months ago #90094 by remartinez
smgvbest,

Thank you for your help. It worked perfect.


Regards,
Raul

Please Log in to join the conversation.

More
9 years 7 months ago #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 to join the conversation.

More
9 years 5 months ago #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 to join the conversation.

More
9 years 5 months ago #93504 by Andyf97
Create a shortcut on the desktop with these properties.

Attachment not found



Attachment not found

Please Log in to join the conversation.

Time to create page: 0.361 seconds
Powered by Kunena Forum