WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: cron start at boot  (Read 2929 times)

Offline robc

  • Sr. Member
  • ****
  • Posts: 447
cron start at boot
« 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.
"Never give up! Never surrender!" - Commander Peter Quincy Taggart

"Make it so." - Captain Picard

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: cron start at boot
« Reply #1 on: June 19, 2009, 11:00:19 AM »
Change request accepted. crond start will be moved as was discussed for sshd.
10+ Years Contributing to Linux Open Source Projects.