Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: 3rail on May 15, 2009, 12:54:38 PM

Title: bootlocal.sh vs cron
Post by: 3rail on May 15, 2009, 12:54:38 PM
what's the recommended method for starting a service at boot in tc?  is there any advantage to using bootlocal.sh vs cron?  does it matter?

thanks,

3rail
Title: Re: bootlocal.sh vs cron
Post by: curaga on May 15, 2009, 01:30:19 PM
For included services it would be a bootcode ("cron", "syslog" etc). For others, cron isn't really meant to start services on-boot, but on certain times.

If you need to only serve http traffic every sunday 4-5, it's cron; if start every boot, I'd put it in bootlocal.sh
Title: Re: bootlocal.sh vs cron
Post by: 3rail on May 15, 2009, 02:13:25 PM
curaga, thanks for the reply.  I see what you're saying.  I'm also thinking why run an extra service like cron for startup items (a la "@reboot") when it's "builtin" to tc.
Title: Re: bootlocal.sh vs cron
Post by: valuequest on February 17, 2011, 09:37:51 AM
I am running microcore-3.5.  I tried configuring my bootloader to pass "inet" and "telnet" as boot codes (ref: http://www.tinycorelinux.com/faq.html#bootcodes (http://www.tinycorelinux.com/faq.html#bootcodes)) but I was not able to get them to start at boot time that way.

I then tried put "inetd&" and "telnetd&" into /opt/bootlocal.sh, and that seems to start them at boot time

Just out of curiosity am I missing something about using boot codes to start these two daemons?  Both inetd and telnetd are part of busybox right? So they shouldn't need any other extensions loaded before they are able to start right?
Title: Re: bootlocal.sh vs cron
Post by: curaga on February 17, 2011, 09:44:36 AM
There are no bootcodes for inetd or telnetd, so your approach of starting them in bootlocal.sh is correct.