Files
the-littlest-jupyterhub/tljh/systemd-units/jupyterhub.service
yuvipanda 12698a20ed Move all config files inside INSTALL_PREFIX
Makes cleanup easier!
2018-06-27 03:17:01 -07:00

23 lines
773 B
Desktop File

# Template file for JupyterHub systemd service
# Uses simple string.format() for 'templating'
[Unit]
Wants=configurable-http-proxy.service
[Service]
User=root
Restart=always
# jupyterhub process should have no access to home directories
ProtectHome=tmpfs
# Use a persistent, permissioned state directory for db + cookie secrets
StateDirectory=jupyterhub
WorkingDirectory=/var/lib/jupyterhub
# Protect bits that are normally shared across the system
PrivateTmp=yes
PrivateDevices=yes
ProtectKernelTunables=yes
ProtectKernelModules=yes
# Source CONFIGPROXY_AUTH_TOKEN from here!
EnvironmentFile={install_prefix}/configurable-http-proxy.secret
Environment=TLJH_INSTALL_PREFIX={install_prefix}
ExecStart={python_interpreter_path} -m jupyterhub.app -f {jupyterhub_config_path}