Executing before / after (compile/build) lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- egsuh · 2025-09-15 07:49 Hello, I'm running an FCGI web server. When I make any modifications to the program, I have to stop running the FCGI service (on Windows), and restart it, before and after compilation and build. Are there any way that I can stop and restart it simply before after linking, because if there are errors during compilation, it doesn't have to be restarted. Restarting the service only after compile/build doesn't work, as the newly compiled exe file will not be saved. ---------------------------------------------------------------------- ASBzone · 2025-09-15 11:47 If you are compiling it directly to the location where the service will run from, then you will have to stop the service to overwrite the file, yes. I usually compile my files to one location, and then automate the process of updating them somewhere else. Perhaps you could apply those as part of Compiler Options, before and after the compilation.