ci deploy (src 49c73c2)
This commit is contained in:
14
sgame-admin-sync.service
Normal file
14
sgame-admin-sync.service
Normal file
@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=SGame admin 发版拉取(检查产物仓,有新构建才重启服务)
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
# 需要 root:install 到 /opt 并 systemctl restart 主服务
|
||||
User=root
|
||||
ExecStart=/opt/sgame-admin/vps-sync.sh
|
||||
# 拉取脚本内部已有 git 超时,这里再兜一层,杜绝 timer 任务堆积
|
||||
TimeoutStartSec=180
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
SyslogIdentifier=sgame-admin-sync
|
||||
Reference in New Issue
Block a user