瀏覽代碼

systemd daemon backend service

David 10 年之前
父節點
當前提交
e8aff507ad
共有 1 個文件被更改,包括 13 次插入0 次删除
  1. 13 0
      templates/backend.service

+ 13 - 0
templates/backend.service

@@ -0,0 +1,13 @@
+[Unit]
+Description=Consultorio-backend for {{ client_username }}
+After=networking.service
+Requires=networking.service
+
+[Service]
+User={{ client_username }}
+TimeoutStartSec=0
+WorkingDirectory=/home/{{ client_username }}/consultorio_backend/back/
+ExecStart=/usr/bin/python3 app.py
+
+[Install]
+WantedBy=multi-user.target