scron

simple cron daemon
git clone git://git.2f30.org/scron
Log | Files | Refs | README | LICENSE

commit dd6a0fa59a5fa9cc254e68b1be51f6ad870935f2
parent d99f39654d118e407e12df34fd4dec7f572303e3
Author: sin <sin@2f30.org>
Date:   Wed,  9 Jul 2014 07:36:58 +0100

Do not chdir to "/" when daemonized

Otherwise starting crond as: crond -f crontab fails.

Diffstat:
Mcrond.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crond.c b/crond.c @@ -431,7 +431,7 @@ main(int argc, char *argv[]) if (nflag == 0) { openlog(argv[0], LOG_CONS | LOG_PID, LOG_CRON); - daemon(0, 0); + daemon(1, 0); } signal(SIGCHLD, sigchld);