crond,crontab: make cron directory location configurable
This commit is contained in:
parent
d814c98692
commit
ded5dfef6e
@ -121,6 +121,13 @@ config FEATURE_CROND_CALL_SENDMAIL
|
|||||||
help
|
help
|
||||||
Support calling /usr/sbin/sendmail for send cmd outputs.
|
Support calling /usr/sbin/sendmail for send cmd outputs.
|
||||||
|
|
||||||
|
config FEATURE_CROND_DIR
|
||||||
|
string "crond spool directory"
|
||||||
|
default "/var/spool/cron"
|
||||||
|
depends on CROND || CRONTAB
|
||||||
|
help
|
||||||
|
Location of crond spool.
|
||||||
|
|
||||||
config CRONTAB
|
config CRONTAB
|
||||||
bool "crontab"
|
bool "crontab"
|
||||||
default n
|
default n
|
||||||
|
@ -23,12 +23,8 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifndef CRONTABS
|
#define TMPDIR CONFIG_FEATURE_CROND_DIR
|
||||||
#define CRONTABS "/var/spool/cron/crontabs"
|
#define CRONTABS CONFIG_FEATURE_CROND_DIR "/crontabs"
|
||||||
#endif
|
|
||||||
#ifndef TMPDIR
|
|
||||||
#define TMPDIR "/var/spool/cron"
|
|
||||||
#endif
|
|
||||||
#ifndef SENDMAIL
|
#ifndef SENDMAIL
|
||||||
#define SENDMAIL "sendmail"
|
#define SENDMAIL "sendmail"
|
||||||
#endif
|
#endif
|
||||||
|
@ -12,9 +12,7 @@
|
|||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
#ifndef CRONTABS
|
#define CRONTABS CONFIG_FEATURE_CROND_DIR "/crontabs"
|
||||||
#define CRONTABS "/var/spool/cron/crontabs"
|
|
||||||
#endif
|
|
||||||
#ifndef CRONUPDATE
|
#ifndef CRONUPDATE
|
||||||
#define CRONUPDATE "cron.update"
|
#define CRONUPDATE "cron.update"
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user