Skip to content
Snippets Groups Projects
Commit b4a4a148 authored by Felix Fietkau's avatar Felix Fietkau
Browse files

create /var/spool/cron in cron init script and change the default crontab...

create /var/spool/cron in cron init script and change the default crontab location to /etc/crontabs (fixes #88)

SVN-Revision: 2621
parent 565f9985
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
[ -d /etc/crontabs ] && crond -c /etc/crontabs
[ -d /etc/crontabs ] && {
mkdir -p /var/spool/cron
crond -c /etc/crontabs
}
diff -urN busybox.old/miscutils/crond.c busybox.dev/miscutils/crond.c
--- busybox.old/miscutils/crond.c 2004-04-14 19:51:21.000000000 +0200
+++ busybox.dev/miscutils/crond.c 2005-12-11 22:54:07.878256250 +0100
@@ -36,7 +36,7 @@
#define arysize(ary) (sizeof(ary)/sizeof((ary)[0]))
#ifndef CRONTABS
-#define CRONTABS "/var/spool/cron/crontabs"
+#define CRONTABS "/etc/crontabs"
#endif
#ifndef TMPDIR
#define TMPDIR "/var/spool/cron"
diff -urN busybox.old/miscutils/crontab.c busybox.dev/miscutils/crontab.c
--- busybox.old/miscutils/crontab.c 2004-04-14 19:51:21.000000000 +0200
+++ busybox.dev/miscutils/crontab.c 2005-12-11 22:54:28.647554250 +0100
@@ -28,7 +28,7 @@
#include <sys/resource.h>
#ifndef CRONTABS
-#define CRONTABS "/var/spool/cron/crontabs"
+#define CRONTABS "/etc/crontabs"
#endif
#ifndef TMPDIR
#define TMPDIR "/var/spool/cron"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment