Tiny Core Linux

Tiny Core Base => TCB Bugs => Topic started by: robc on June 18, 2009, 03:59:25 PM

Title: cron start at boot
Post by: robc on June 18, 2009, 03:59:25 PM
tc-config uses the following to start cron:
Code: [Select]
if [ -n "$CRON" ]; then
  /usr/sbin/crond
  if [ "$?" == 0 ]; then echo " ${GREEN}cron started.${NORMAL}"; fi
fi
I think this should be changed to:
Code: [Select]
if [ -n "$CRON" ]; then
  /etc/init.d/crond start
fi

Starting cron the way tc-config does disregards any options that are set in /etc/init.d/crond.
It may be a good idea to start cron after bootlocal so the crontabs and and changes to /etc/init.d/crond are used. Also this would allow remasters to still use the cron bootcode and use the options set in /etc/init.d/crond without the need to use a backup or bootlocal.
Title: Re: cron start at boot
Post by: roberts on June 19, 2009, 11:00:19 AM
Change request accepted. crond start will be moved as was discussed for sshd.