commit
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
[Unit]
|
||||
Description=Self Media Scraper Watcher (TMDB)
|
||||
# 用途:开机自启,监听清理目录,新媒体出现自动刮削并复制落库
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
# ---- 下面 3 行把 /你的项目绝对路径 替换成飞牛上放本项目的真实路径 ----
|
||||
ExecStart=/你的项目绝对路径/.venv/bin/python /你的项目绝对路径/watcher.py --config /你的项目绝对路径/config.json
|
||||
WorkingDirectory=/你的项目绝对路径
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
StandardOutput=append:/你的项目绝对路径/scraper.out
|
||||
StandardError=append:/你的项目绝对路径/scraper.err
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user