Compare commits
2 Commits
7f537a420f
...
9e57ed1690
| Author | SHA1 | Date | |
|---|---|---|---|
| 9e57ed1690 | |||
| 89f909606c |
@@ -50,27 +50,6 @@ jobs:
|
|||||||
--output type=local,dest=./output \
|
--output type=local,dest=./output \
|
||||||
-f docker/Dockerfile.ubuntu .
|
-f docker/Dockerfile.ubuntu .
|
||||||
|
|
||||||
- name: Verify static linking
|
|
||||||
run: |
|
|
||||||
DIR="./output/linux_${{ matrix.arch }}"
|
|
||||||
BINARY="${DIR}/mond"
|
|
||||||
|
|
||||||
if [ ! -f "$BINARY" ]; then
|
|
||||||
echo "❌ 二进制文件不存在: $BINARY"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "🔍 验证静态链接..."
|
|
||||||
if ldd "$BINARY" 2>&1 | grep -q "not a dynamic executable"; then
|
|
||||||
echo "✅ 纯静态链接验证成功"
|
|
||||||
else
|
|
||||||
echo "❌ 静态链接验证失败,发现动态库依赖:"
|
|
||||||
ldd "$BINARY" || true
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
file "$BINARY"
|
|
||||||
|
|
||||||
- name: Package and test
|
- name: Package and test
|
||||||
run: |
|
run: |
|
||||||
DIR="./output/linux_${{ matrix.arch }}"
|
DIR="./output/linux_${{ matrix.arch }}"
|
||||||
|
|||||||
14
debian/mond.service
vendored
14
debian/mond.service
vendored
@@ -9,7 +9,19 @@ Type=simple
|
|||||||
WorkingDirectory=/opt/mond
|
WorkingDirectory=/opt/mond
|
||||||
|
|
||||||
# 执行命令
|
# 执行命令
|
||||||
ExecStart=/opt/mond/mond --data-dir=/var/lib/mond --log-file=/var/log/mond/mond.log --detach
|
ExecStart=/opt/mond/mond \
|
||||||
|
--data-dir=/var/lib/mond \
|
||||||
|
--prune-blockchain \
|
||||||
|
--zmq-pub tcp://127.0.0.1:18083 \
|
||||||
|
--out-peers=32 \
|
||||||
|
--in-peers=64 \
|
||||||
|
--add-priority-node=p2pmd.xmrvsbeast.com:18080 \
|
||||||
|
--add-priority-node=nodes.hashvault.pro:18080 \
|
||||||
|
--enforce-dns-checkpointing \
|
||||||
|
--enable-dns-blocklist \
|
||||||
|
--log-level 1 \
|
||||||
|
--log-file=/var/log/mond/mond.log \
|
||||||
|
--non-interactive
|
||||||
|
|
||||||
# 重启策略
|
# 重启策略
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|||||||
Reference in New Issue
Block a user