From 564793c4652b949ca2ea2af98efa38abe2a584b4 Mon Sep 17 00:00:00 2001 From: Jules-Bertholet Date: Fri, 28 May 2021 19:40:15 -0400 Subject: [PATCH] Specify user and group in systemd unit file Fix CI warning --- conf/systemd.service | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/conf/systemd.service b/conf/systemd.service index c10f8f0..812aef7 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -6,10 +6,12 @@ After=syslog.target network.target Environment="LC_ALL=C.UTF-8" Environment="LANG=C.UTF-8" Environment="PATH=__NODE_PATH__:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" +USER=__APP__ +GROUP=__APP__ ExecStart=/usr/local/bin/pipenv run jupyterhub -f __FINALPATH__/config/jupyterhub_config.py Restart=always RestartSec=10 WorkingDirectory=__FINALPATH__ [Install] -WantedBy=multi-user.target \ No newline at end of file +WantedBy=multi-user.target