Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/miscutils/crond.c
- Timestamp:
- Jan 1, 2014, 12:47:38 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi-busybox/miscutils/crond.c
r2725 r3232 11 11 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 12 12 */ 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" 13 26 14 27 #include "libbb.h" … … 849 862 /* "-b after -f is ignored", and so on for every pair a-b */ 850 863 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+"); 852 866 opts = getopt32(argv, "l:L:fbSc:" IF_FEATURE_CROND_D("d:"), 853 867 &G.log_level, &G.log_filename, &G.crontab_dir_name … … 872 886 crondlog(LVL8 "crond (busybox "BB_VER") started, log level %d", G.log_level); 873 887 rescan_crontab_dir(); 874 write_pidfile( "/var/run/crond.pid");888 write_pidfile(CONFIG_PID_FILE_PATH "/crond.pid"); 875 889 876 890 /* Main loop */
Note:
See TracChangeset
for help on using the changeset viewer.