2025-12-25 upload
This commit is contained in:
19
bjh_daemon.service
Normal file
19
bjh_daemon.service
Normal file
@@ -0,0 +1,19 @@
|
||||
[Unit]
|
||||
Description=百家号数据同步守护进程
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
WorkingDirectory=/root/xhh_baijiahao
|
||||
ExecStart=/usr/bin/python3 /root/xhh_baijiahao/data_sync_daemon.py
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
|
||||
# 环境变量(如果需要)
|
||||
# Environment="PATH=/usr/local/bin:/usr/bin:/bin"
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user