From 04c180738edab200d9a399b4f63f69f3101fa125 Mon Sep 17 00:00:00 2001 From: starry <115192496+sky22333@users.noreply.github.com> Date: Wed, 11 Jun 2025 18:15:39 +0800 Subject: [PATCH] Update hubproxy.service --- hubproxy.service | 25 +++---------------------- 1 file changed, 3 insertions(+), 22 deletions(-) diff --git a/hubproxy.service b/hubproxy.service index 64a106f..640651b 100644 --- a/hubproxy.service +++ b/hubproxy.service @@ -1,9 +1,7 @@ [Unit] -Description=HubProxy - Docker Registry Proxy Service -Documentation=https://github.com/sky22333/hubproxy +Description=hubproxy After=network-online.target Wants=network-online.target -AssertPathExists=/opt/hubproxy/hubproxy [Service] Type=simple @@ -11,29 +9,12 @@ User=root Group=root WorkingDirectory=/opt/hubproxy ExecStart=/opt/hubproxy/hubproxy -ExecReload=/bin/kill -HUP $MAINPID Restart=always RestartSec=5 -StartLimitInterval=60 -StartLimitBurst=3 -KillMode=mixed -KillSignal=SIGTERM -TimeoutStopSec=30 -TimeoutStartSec=30 - -# 安全设置 - 保持必要的安全限制 -PrivateTmp=true -ProtectHome=true -ReadWritePaths=/opt/hubproxy - -# 资源限制 -LimitNOFILE=65536 -LimitNPROC=4096 - -# 日志设置 +Environment=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin StandardOutput=journal StandardError=journal SyslogIdentifier=hubproxy [Install] -WantedBy=multi-user.target \ No newline at end of file +WantedBy=multi-user.target