Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemath
GitHub Repository: sagemath/sagecell
Path: blob/master/contrib/vm/compute_node/etc/systemd/system/sagecell.service
448 views
[Unit]
Description=SageMathCell computation server


[Service]
Type=notify
NotifyAccess=all
Restart=always
SyslogIdentifier=SageMathCell

ExecStartPre=/root/firewall
ExecStartPre=\
    -/usr/bin/pkill -u {worker} ;\
    /bin/rm -rf /tmp/sagecell ;\
    /bin/mkdir /tmp/sagecell ;\
    /bin/chown {server}:{group} /tmp/sagecell ;\
    /bin/chmod g=wxs,o= /tmp/sagecell

PermissionsStartOnly=true
WorkingDirectory=/home/{server}/sagecell
User={server}
ExecStart=/home/{server}/sage/sage web_server.py


[Install]
WantedBy=multi-user.target