Changeset 30335 for trunk/base


Ignore:
Timestamp:
Oct 25, 2007, 4:33:13 AM (12 years ago)
Author:
jberry@…
Message:

Improve daemondo logging at level 1 such that recognition of child death is evident.
Add some additional logging at level 1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/programs/daemondo/main.c

    r30334 r30335  
    379379    if (runningPid != 0 && runningPid != -1 && childPid == runningPid)
    380380    {
    381         if (verbosity >= 3)
    382             LogMessage("Target process id %d has died.\n", childPid);
     381        if (verbosity >= 1)
     382            LogMessage("Target process pid %d has died.\n", childPid);
    383383           
    384384        UnmonitorChild();
     
    499499   
    500500    if (verbosity >= 1)
    501         LogMessage("starting process\n");
     501        LogMessage("Starting process\n");
    502502    if (verbosity >= 2)
    503503        LogMessage("Running start-cmd %s.\n", CatArray(startArgs, buf, sizeof(buf)));
     
    571571        {
    572572            if (verbosity >= 1)
    573                 LogMessage("stopping process %d\n", pid);
     573                LogMessage("Stopping process %d\n", pid);
    574574           
    575575            // Send the process a SIGTERM to ask it to quit
     
    590590        // and trust it to do the job.
    591591        if (verbosity >= 1)
    592             LogMessage("stopping process\n");
     592            LogMessage("Stopping process\n");
    593593        if (verbosity >= 2)
    594594            LogMessage("Running stop-cmd %s.\n", CatArray(stopArgs, buf, sizeof(buf)));
     
    621621        // We weren't given a restart command, so just use stop/start
    622622        if (verbosity >= 1)
    623             LogMessage("restarting process\n");
     623            LogMessage("Restarting process\n");
    624624        Stop();
    625625        Start();
     
    629629        // Execute the restart-cmd and trust it to do the job
    630630        if (verbosity >= 1)
    631             LogMessage("restarting process\n");
     631            LogMessage("Restarting process\n");
    632632        if (verbosity >= 2)
    633633            LogMessage("Running restart-cmd %s.\n", CatArray(restartArgs, buf, sizeof(buf)));
     
    783783        {
    784784            terminating = true;
     785            if (verbosity >= 1)
     786                LogMessage("SIGTERM received\n");
    785787            Stop();
    786788        }
     
    788790   
    789791    case SIGHUP:
     792        if (verbosity >= 1)
     793            LogMessage("SIGHUP received\n");
    790794        if (!terminating)
    791795            Restart();
Note: See TracChangeset for help on using the changeset viewer.