diff --git a/opt/mars-nwe-serv.service.cmake b/opt/mars-nwe-serv.service.cmake index aa512c0..7bec4f0 100644 --- a/opt/mars-nwe-serv.service.cmake +++ b/opt/mars-nwe-serv.service.cmake @@ -6,9 +6,11 @@ After=network.target Type=forking RuntimeDirectory=mars_nwe RuntimeDirectoryMode=0755 +ExecStartPre=/bin/mkdir -p @MARS_NWE_LOG_DIR@ +ExecStartPre=/bin/mkdir -p @MARS_NWE_PID_DIR@ PIDFile=@MARS_NWE_PID_DIR@/nwserv.pid ExecStart=@CMAKE_INSTALL_FULL_SBINDIR@/nwserv ExecStop=/bin/kill -TERM $MAINPID [Install] -WantedBy=multi-user.target +WantedBy=multi-user.target \ No newline at end of file