[Unit] Description=OpenShell Gateway Documentation=https://github.com/NVIDIA/OpenShell After=default.target [Service] Type=simple StateDirectory=openshell/gateway Environment=OPENSHELL_LOCAL_TLS_DIR=%h/.local/state/openshell/tls EnvironmentFile=-%E/openshell/gateway.env ExecStartPre=/usr/bin/openshell-gateway generate-certs --output-dir ${OPENSHELL_LOCAL_TLS_DIR} --server-san host.openshell.internal ExecStart=/usr/bin/openshell-gateway Restart=on-failure RestartSec=5s PrivateTmp=true UMask=0077 [Install] WantedBy=default.target