Files
xxxigcc/debian/xxxigcc-daemon.service
Wang Defa 9142021f26
All checks were successful
Build and Release / build-and-test (arm64, alpine) (push) Successful in 8s
Build and Release / build-and-test (amd64, alpine) (push) Successful in 15s
Build and Release / build-and-test (arm64, ubuntu) (push) Successful in 19s
Build and Release / build-and-test (amd64, ubuntu) (push) Successful in 37s
Build and Release / release (push) Successful in 1m8s
添加deb包构建,删除容器构建
2025-12-03 16:10:42 +08:00

39 lines
639 B
Desktop File

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