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


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

ExecStartPre=\
    /sbin/iptables -t nat --flush PREROUTING ;\
    /sbin/iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080


PermissionsStartOnly=true
WorkingDirectory=/home/sc_data
User=sc_data
ExecStart=/usr/bin/python3 sagecell/permalink_server.py


[Install]
WantedBy=multi-user.target