Some checks failed
Build and Release Mond / build-and-test (arm64, alpine) (push) Failing after 1m3s
Build and Release Mond / build-and-test (amd64, alpine) (push) Failing after 1m39s
Build and Release Mond / build-and-test (arm64, ubuntu) (push) Failing after 2m24s
Build and Release Mond / build-and-test (amd64, ubuntu) (push) Failing after 3m2s
Build and Release Mond / release (push) Has been skipped
39 lines
613 B
Desktop File
39 lines
613 B
Desktop File
[Unit]
|
|
Description=Mond Cryptocurrency Daemon
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
|
|
# 工作目录
|
|
WorkingDirectory=/opt/mond
|
|
|
|
# 执行命令
|
|
ExecStart=/opt/mond/mond --data-dir=/var/lib/mond --log-file=/var/log/mond/mond.log --detach
|
|
|
|
# 重启策略
|
|
Restart=always
|
|
RestartSec=10
|
|
|
|
# 用户和组
|
|
User=mond
|
|
Group=mond
|
|
|
|
# 安全设置
|
|
NoNewPrivileges=true
|
|
PrivateTmp=true
|
|
ProtectSystem=strict
|
|
ProtectHome=true
|
|
ReadWritePaths=/var/lib/mond /var/log/mond
|
|
|
|
# 日志设置
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
SyslogIdentifier=mond
|
|
|
|
# 资源限制
|
|
LimitNOFILE=65535
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|