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
39 lines
644 B
Desktop File
39 lines
644 B
Desktop File
[Unit]
|
|
Description=XXXigCC Server (Control Center)
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
|
|
# 工作目录
|
|
WorkingDirectory=/opt/xxxigcc
|
|
|
|
# 执行命令
|
|
ExecStart=/opt/xxxigcc/xxxigServer --config /etc/xxxigcc/config_cc.json --log-file=/var/log/xxxigcc/server.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-server
|
|
|
|
# 资源限制
|
|
LimitNOFILE=65535
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|