On Wed, Dec 23, 2009 at 12:42 PM, Dr. David Kirkby
<david.kir...@onetel.net> wrote:
> rvaug...@gmail.com wrote:
>> Thanks for all the security-related comments and suggestions.
>> Very helpful, and very appreciated.
>>
>> Another question:
>> We'd like the "sage: notebook(address="",open_viewer=False, secure =
>> True) "
>> to be executed on boot-up so that it's "there" when anyone wants it.
>> Any suggestions on how?  /etc/init.d/{script}?
>>
>> Thanks,
>> -Richard Vaughn
>
> I run my first 'public' server yesterday, so my experience is pretty small, 
> but
> I suspect something like a startup script with
>
> su - sage  /homes/sage/sage-4.2/sage -notebook address=''
> server_pool=['sa...@localhost']  ulimit='-v 500000' accounts=True
>
>
>
> should start the process as non-root. However, there are too many quotes in 
> that
> command -

Just make a script in /usr/local/bin/, e.g.,

  /usr/local/bin/start_sage_server

put something like this in it:

  /homes/sage/sage-4.2/sage -notebook address='' accounts=True

Then edit

   /etc/rc.d/rc.local

(or whatever it is for you Linux distro!  which is it?)

  and put

     su - sage /usr/local/bin/start_sage_server

William

-- 
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

Reply via email to