Renumber the jobs file so that it can be reloaded in native code.
[whenjobs.git] / daemon / whenjobsd.pod
index 7139cb3..923a3d2 100644 (file)
@@ -80,14 +80,19 @@ This contains the process ID of the daemon.  The daemon also holds an
 advisory (L<flock(2)>-style) exclusive lock on this file while it is
 running.
 
-=item C<$HOME/.whenjobs/*.cmo>
+=item C<$HOME/.whenjobs/jobs__*.cmo> (bytecode daemon)
 
-The compiled jobs specification file(s) which the daemon loads on
-start up, or reloads when instructed to by the L<whenjobs(1)> tool.
+=item C<$HOME/.whenjobs/jobs__*.cmxs> (native code daemon)
 
-Normally you only have one, called C<jobs.cmo>, corresponding to the
-source file C<jobs.ml> which is edited by C<whenjobs -e>.  It is
-possible to have multiple files, see L<whenjobs(1)/MULTIPLE JOBS FILES>.
+The compiled jobs specification file which the daemon loads on start
+up, or reloads when instructed to by the L<whenjobs(1)> tool.
+
+The source jobs ml file(s) are compiled down to a single module with a
+random name (each source file is a submodule).  Only the highest
+numbered file is loaded; the others are assumed to be earlier versions
+and deleted.
+
+See also L<whenjobs(1)/MULTIPLE JOBS FILES>.
 
 =item C<$HOME/.whenjobs/socket>