This commit is contained in:
CrazyJasonwell
2026-10-07 11:07:00 +08:00
parent e88e4de0f5
commit 290ff8984f
96 changed files with 213854 additions and 0 deletions
+17
View File
@@ -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