Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/miscutils/crond.c


Ignore:
Timestamp:
Jan 1, 2014, 12:47:38 AM (10 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.21.1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi-busybox/miscutils/crond.c

    r2725 r3232  
    1111 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
    1212 */
     13
     14//usage:#define crond_trivial_usage
     15//usage:       "-fbS -l N " IF_FEATURE_CROND_D("-d N ") "-L LOGFILE -c DIR"
     16//usage:#define crond_full_usage "\n\n"
     17//usage:       "    -f  Foreground"
     18//usage:     "\n    -b  Background (default)"
     19//usage:     "\n    -S  Log to syslog (default)"
     20//usage:     "\n    -l  Set log level. 0 is the most verbose, default 8"
     21//usage:    IF_FEATURE_CROND_D(
     22//usage:     "\n    -d  Set log level, log to stderr"
     23//usage:    )
     24//usage:     "\n    -L  Log to file"
     25//usage:     "\n    -c  Working dir"
    1326
    1427#include "libbb.h"
     
    849862    /* "-b after -f is ignored", and so on for every pair a-b */
    850863    opt_complementary = "f-b:b-f:S-L:L-S" IF_FEATURE_CROND_D(":d-l")
    851             ":l+:d+"; /* -l and -d have numeric param */
     864            /* -l and -d have numeric param */
     865            ":l+" IF_FEATURE_CROND_D(":d+");
    852866    opts = getopt32(argv, "l:L:fbSc:" IF_FEATURE_CROND_D("d:"),
    853867            &G.log_level, &G.log_filename, &G.crontab_dir_name
     
    872886    crondlog(LVL8 "crond (busybox "BB_VER") started, log level %d", G.log_level);
    873887    rescan_crontab_dir();
    874     write_pidfile("/var/run/crond.pid");
     888    write_pidfile(CONFIG_PID_FILE_PATH "/crond.pid");
    875889
    876890    /* Main loop */
Note: See TracChangeset for help on using the changeset viewer.