⚙️Add daemon for web_api.py
This commit is contained in:
parent
9b6159b3fe
commit
126c526008
1 changed files with 14 additions and 0 deletions
14
daemon/web_api.service
Normal file
14
daemon/web_api.service
Normal file
|
|
@ -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
|
||||
Loading…
Reference in a new issue