From 5e0b53e4495173c6a812beac50c7d40fe4c5a7f2 Mon Sep 17 00:00:00 2001 From: murtaugh Date: Mon, 20 Sep 2021 18:29:43 +0200 Subject: [PATCH] Add 'make_user_accounts/jupyterlab@.service' --- make_user_accounts/jupyterlab@.service | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 make_user_accounts/jupyterlab@.service diff --git a/make_user_accounts/jupyterlab@.service b/make_user_accounts/jupyterlab@.service new file mode 100644 index 0000000..416bcf4 --- /dev/null +++ b/make_user_accounts/jupyterlab@.service @@ -0,0 +1,16 @@ +[Unit] +Description=Jupyter Lab Server (%i) +After=nginx.service + +[Service] +User=%i +Group=%i +Type=simple +WorkingDirectory=/home/%i/ +ExecStart=/usr/local/bin/jupyter-lab --config=/home/%i/.jupyter/jupyter_notebook_config.py +StandardOutput=null +Restart=always +RestartSec=10 + +[Install] +WantedBy=multi-user.target