On 2 bře, 23:29, David Kirkby <david.kir...@onetel.net> wrote: > On 2 March 2010 21:44, Andrzej Giniewicz <ggi...@gmail.com> wrote: > 1) How to start the server. You don't want to be in a position that if > the system gets rebooted, a power failure etc, that someone has to > manually restart the server. > > The exact method of doing this would depend on your operating system. > I know I did this for Solaris 10, but there's not a lot of point in > sharing that in detail here. > > But basically the root user must start the server, but you don't want > to run the server as root. So something like > > su - server /local-bins/start-sage >
FWIW This is my /etc/rc.local - seems to work for this thing sage runs under user sage :) Robert #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. cd /var/www/HotSaNIC/ ./rrdgraph start nohup su sage -c 'cd /opt/sage&&./sage notebook.sage' &> /dev/null & exit 0 -- 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