Changeset 30333 for trunk/base


Ignore:
Timestamp:
Oct 25, 2007, 3:21:58 AM (12 years ago)
Author:
jberry@…
Message:

Daemondo: cleanup some comments and the inline help documentation.
Don't emit help on parameter errors, just tell then how to get it.

File:
1 edited

Legend:

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

    r30332 r30333  
    22    daemondo - main.c
    33   
    4     Copyright (c) 2005 James Berry <jberry@macports.org>
     4    Copyright (c) 2005-2007 James Berry <jberry@macports.org>
    55    All rights reserved.
    66
     
    4646   
    4747        com.apple.system.config.network_change
    48 */
    49 
    50 /*
    51     New parameters:
    52    
    53         --pid=none      - no pid is available; we start/stop only through the commands,
    54                           and have no real knowledge of whether the process is running
    55         --pid=exec      - we track the pid we receive from exec of the start cmd
    56         --pid=fileauto  - we track the pid available in first word of pidfile
    57         --pid=fileclean - we track the pid available in first word of pidfile,
    58                           and clean it up when the process dies
    59        
    60         --pidfile=name  - the name of the pidfile to use
    6148*/
    6249   
     
    206193        "  -k, --stop-cmd args... ;        Command that will stop the daemon.\n"
    207194        "  -r, --restart-cmd args... ;     Command that will restart the daemon.\n"
     195        "\n"
     196        "      --pid=none|exec|fileauto|fileclean\n"
     197        "                                  Whether to use/how to treat pid file.\n"
     198        "      --pidfile=<pidfile>         A pidfile from which to scavenge the target pid.\n"
     199        "\n"
     200        "      --restart-wakeup            Restart daemon on wake from sleep.\n"
     201        "      --restart-netchange         Restart daemon on a network change.\n"
    208202        "      --restart-config regex... ; SC patterns on which to restart the daemon.\n"
    209203        "      --restart-dist-notify names... ;\n"
     
    214208        "                                  on which to restart the daemon.\n"
    215209        "      --restart-config regex... ; SC patterns on which to restart the daemon.\n"
    216         "      --restart-wakeup            Restart daemon on wake from sleep.\n"
    217         "      --restart-netchange         Restart daemon on a network change.\n"
    218210        "\n"
    219211        "daemondo responds to SIGHUP by restarting the daemon, and to SIGTERM by\n"
     
    12961288        status = MainLoop();
    12971289    else
    1298         DoHelp();
     1290        printf("use option --help for help\n");
    12991291       
    13001292    return status;
Note: See TracChangeset for help on using the changeset viewer.