From 126c526008b745b9efd04bf2d1b691474f5e37b5 Mon Sep 17 00:00:00 2001 From: Evil0ctal Date: Wed, 21 Dec 2022 18:16:23 -0800 Subject: [PATCH] =?UTF-8?q?=E2=9A=99=EF=B8=8FAdd=20daemon=20for=20`web=5Fa?= =?UTF-8?q?pi.py`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- daemon/web_api.service | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 daemon/web_api.service diff --git a/daemon/web_api.service b/daemon/web_api.service new file mode 100644 index 0000000..b2e458d --- /dev/null +++ b/daemon/web_api.service @@ -0,0 +1,14 @@ +[Unit] +Description=www/wwwroot/Douyin_TikTok_Download_API/web_api.py deamon +After=rc-local.service + +[Service] +Type=simple +User=root +Group=root +WorkingDirectory=/www/wwwroot/Douyin_TikTok_Download_API +ExecStart=python3 web_api.py +Restart=always + +[Install] +WantedBy=multi-user.target