This commit is contained in:
2026-06-24 11:46:08 +08:00
parent 2875918289
commit 7d9ccdde75
+1 -1
View File
@@ -76,7 +76,7 @@ User=${SERVICE_USER}
Group=${SERVICE_USER}
WorkingDirectory=${INSTALL_DIR}
ExecStart=${INSTALL_DIR}/${BINARY_NAME} -config ${CONFIG_DIR}/config.yaml
ExecStartPost=/bin/chmod 666 ${SOCKET_DIR}/web.sock
ExecStartPost=/bin/sh -c 'while [ ! -S ${SOCKET_DIR}/web.sock ]; do sleep 0.1; done; chmod 666 ${SOCKET_DIR}/web.sock'
Restart=on-failure
RestartSec=5s
NoNewPrivileges=true