On Sun, Oct 4, 2009 at 3:43 PM, Chris Seberino <cseber...@gmail.com> wrote: > > I'm writing an /etc/init.d script to start and stop the Sage notebook. > > I'm not sure how to cleanly shutdown the notebook from the command > line. > > ps -ef shows a lot of sage processes so it isn't obvious which one I > should kill -9. > > I tried killing some but can't find the right one that shuts down the > whole operation. If you're writing a script, this line is probably what you want:
kill -9 `cat /path/to/twistd.pid` #those are back-ticks -Alex > > Thanks, > > Chris > > > -- Alex Clemesha clemesha.org --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---