]> git.ipfire.org Git - thirdparty/fcron.git/commitdiff
Use uppercase Job when appropriate in log messages (#35)
authorcastilma <castilma+github@uni-bremen.de>
Sun, 20 Oct 2024 15:42:28 +0000 (17:42 +0200)
committerGitHub <noreply@github.com>
Sun, 20 Oct 2024 15:42:28 +0000 (16:42 +0100)
* print Job with uppercase J when logging that a runonce job ran already

* change 'Job' to uppercase in some log messages to match others

---------

Co-authored-by: Martin Castillo <castilma@uni-bremen.de>
database.c
fcrondyn_svr.c

index 2e7d67d1abfb17cac6de3607cf19b5098fb2955f..3f290d4880b00853ba851fafb3be3d81727b7167 100644 (file)
@@ -540,12 +540,12 @@ wait_chld(void)
             if (pid == e->e_ctrl_pid) {
                 if (e->e_line == NULL) {
                     /* the corresponding file has been removed from memory */
-                    debug("job finished: pid %d", pid);
+                    debug("Job finished: pid %d", pid);
                 }
                 else {
 
                     line = e->e_line;
-/*                 debug("job finished: %s", line->cl_shell); */
+/*                 debug("Job finished: %s", line->cl_shell); */
                     line->cl_numexe -= 1;
                     line->cl_file->cf_running -= 1;
 
@@ -590,11 +590,11 @@ wait_all(int *counter)
             if (pid == e->e_ctrl_pid) {
                 if (e->e_line == NULL) {
                     /* the corresponding file has been removed from memory */
-                    debug("job finished: pid %d", pid);
+                    debug("Job finished: pid %d", pid);
                 }
                 else {
 
-                    debug("job finished: '%s'", e->e_line->cl_shell);
+                    debug("Job finished: '%s'", e->e_line->cl_shell);
                     e->e_line->cl_numexe -= 1;
                     e->e_line->cl_file->cf_running -= 1;
 
@@ -1438,7 +1438,7 @@ set_next_exe_startup(struct cl_t *cl, const int context,
         else {
             /* job has been stopped during execution :
              * launch it again */
-            warn("job '%s' did not finish : running it again.", cl->cl_shell);
+            warn("Job '%s' did not finish : running it again.", cl->cl_shell);
             set_serial_once(cl->cl_option);
             add_serial_job(cl, -1);
         }
@@ -1453,7 +1453,7 @@ set_next_exe_startup(struct cl_t *cl, const int context,
     if (is_runonce(cl->cl_option) && is_hasrun(cl->cl_option)) {
         /* if we get here, then context != CONTEXT_BOOT and_volatile is false */
         /* do nothing: don't re-schedule or add to the job queue */
-        explain("job '%s' with runonce set has already run since last "
+        explain("Job '%s' with runonce set has already run since last "
                 "system startup: not re-scheduling.", cl->cl_shell);
     }
     else if (is_td(cl->cl_option)) {
index d7069e7d14968e583e47c7754bfa87df7c48f39f..6c44d75ff751154344812f12f6feaac3d7bc8e72 100644 (file)
@@ -606,7 +606,7 @@ cmd_ls(struct fcrondyn_cl *client, long int *cmd, int fd, int is_root)
                  e = exe_list_next(exe_list)) {
                 if (e->e_line == NULL) {
                     if (is_root) {
-                        send_msg_fd(fd, "job no more in an fcrontab: pid %d",
+                        send_msg_fd(fd, "Job no more in an fcrontab: pid %d",
                                     e->e_job_pid);
                         found = 1;
                     }