diff --git a/mars-nwe-webui.service.cmake b/mars-nwe-webui.service.cmake index 43e6629..2005c46 100644 --- a/mars-nwe-webui.service.cmake +++ b/mars-nwe-webui.service.cmake @@ -10,6 +10,8 @@ User=root Group=root WorkingDirectory=/ +ExecStartPre=/bin/mkdir -p @MARS_NWE_LOG_DIR@ +ExecStartPre=/bin/mkdir -p @MARS_NWE_PID_DIR@ ExecStart=@CMAKE_INSTALL_FULL_SBINDIR@/nwwebui -c @MARS_NWE_INSTALL_FULL_CONFDIR@/smart.conf Restart=on-failure RestartSec=2