Files
xxxig/debian/xxxig-daemon.service
wangdefaandClaude Opus 4.8 28bc2116fd
Build and Release / build-and-test (amd64, ubuntu) (push) Successful in 1m12s
Build and Release / build-and-test (amd64, alpine) (push) Successful in 1m21s
Build and Release / build-and-test (arm64, ubuntu) (push) Successful in 5m24s
Build and Release / build-and-test (arm64, alpine) (push) Successful in 6m8s
Build and Release / release (push) Has been skipped
初始化 XXXig 打包部署脚本与 CI 流水线
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-09 11:28:03 +08:00

41 lines
676 B
Desktop File

[Unit]
Description=XXXig Daemon (Miner Client)
After=network.target
[Service]
Type=simple
# 工作目录
WorkingDirectory=/opt/xxxig
# 执行命令
ExecStart=/opt/xxxig/xxxigDaemon --config /etc/xxxig/config.json --log-file=/var/log/xxxig/daemon.log
# 重启策略
Restart=always
RestartSec=10
# 用户和组
User=xxxig
Group=xxxig
# 安全设置
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
ReadWritePaths=/var/log/xxxig
# 日志设置
StandardOutput=journal
StandardError=journal
SyslogIdentifier=xxxig-daemon
# 资源限制
LimitNOFILE=65535
LimitMEMLOCK=infinity
AmbientCapabilities=CAP_IPC_LOCK
[Install]
WantedBy=multi-user.target