CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
sagemathinc

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/dev/single/restart-hub
Views: 791
#!/usr/bin/env bash

export USER=wstein
export PATH=/usr/local/bin:$PATH
export PGHOST='/home/wstein/postgres_data/socket'


# If you put this in crontab be sure to explicitly set USER=...

cd /home/wstein/smc/src
. smc-env

echo $PGHOST
service_hub.py stop
sleep .5
service_hub.py --host=localhost --single --update start