Renumber the jobs file so that it can be reloaded in native code.
[whenjobs.git] / daemon / whenjobsd.ml
index 3028503..f5e766a 100644 (file)
@@ -126,12 +126,8 @@ Options:
   Syslog.notice "daemon started: version=%s uid=%d home=%s"
     Config.package_version euid home;
 
-  (* If there is a jobs.cmo/jobs.cmxs file, load it. *)
-  let () =
-    let suffix = if not Dynlink.is_native then "cmo" else "cmxs" in
-    let file = sprintf "%s/jobs.%s" jobsdir suffix in
-    if Sys.file_exists file then
-      try Daemon.reload_files () with Failure _ -> () in
+  (* If there is a jobs__*.cmo/jobs__*.cmxs file, load it. *)
+  (try Daemon.reload_files () with Failure _ -> ());
 
   (* Go into main loop. *)
   Daemon.main_loop ()