-
-
Notifications
You must be signed in to change notification settings - Fork 561
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sage server launching script #7893
Comments
This comment has been minimized.
This comment has been minimized.
comment:2
Anybody is welcome to upload an improved version of the script! |
comment:3
I revised the script according Donald Alan Morrison's comments:
30 def stop_server(): Given the frequency of reboots for most users, and the cost to the
-Don |
comment:4
Using "screen" is not very portable, so I would avoid that. |
comment:5
Typo: twist.pid -> twistd.pid |
comment:6
Further revised according to the comment : Line 50 "blocks" (waits syncronously without checking status); also Otherwise, good refactor. :-) -Don |
comment:7
Look at #381 for a similar effort. On Gentoo I automatically start the Notebook with a runscript - I find it very useful because the only thing I have to do is to open a browser and type in the Notebook's address. It is also possible to access the server from a different PC. To make it a more secure it is run as a different user. I just added a patch which lets one specify the location of twistd's PID file: #10131 - this might be of interest. |
Attachment: sage-notebook-server.gz Runscript starting the Notebook server on Gentoo |
comment:8
It should be easy to port the runscript e.g. to debian - as far as I know Debian also has runscript/start-stop-daemon. |
comment:9
Ping. Shouldn't something like this get shipped with Sage? Also, the Sage Installation Guide lacks this topic. (There's a reference from the online FAQ to #381 though.) |
Changed keywords from none to service daemon mode background |
revised for Sage 5.4; removed "upgrade" command |
Attachment: sage-server.gz Attachment: sage-server.zip revised for Sage 5.4; removed "upgrade" command |
comment:11
Nowadays the goal of the script can be achieved easily on the OS level using tools such as Upstart in Ubuntu. Even I, the writer of the scipt, ceased using it long time ago. |
comment:12
ok, then let us close that. |
Reviewer: Frédéric Chapoton |
Many users seem to write individually scripts starting and stopping a Sage server. It would be good that there is a place where these efforts can be combined.
Component: packages: experimental
Keywords: service daemon mode background
Author: Kwankyu Lee
Reviewer: Frédéric Chapoton
Issue created by migration from https://trac.sagemath.org/ticket/7893
The text was updated successfully, but these errors were encountered: