ctucx.git: oeffisearch

[nimlang] fast and simple tripplanner

commit 5520fbf0c4c3bb57a22457fd2f326fd8bf19e4e2
parent 105867be584af6f5db1c2ef7be0391760622c83d
Author: Leah Thein <leah@toaster.fritz.box>
Date: Sat, 5 Dec 2020 13:06:43 +0100

more verbose
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/oeffisearch.nim b/src/oeffisearch.nim
@@ -67,7 +67,8 @@ proc main() =
 
   if getEnv("PID_FILE") != "":
     try:
-      writeFile(getEnv("PID_FILE"), $getpid())
+      writeFile(getEnv("PID_FILE"), $getpid() & "\n")
+      echo "pid-file \"" & getEnv("PID_FILE") & "\" crated"
     except:
       echo "Can't write pid file!"
       quit(1)