diff --git a/install_linux.sh b/install_linux.sh index 87603d2..dcfed17 100755 --- a/install_linux.sh +++ b/install_linux.sh @@ -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