Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: qnx on June 09, 2010, 11:49:42 AM

Title: How to autostart lighttpd in TinyCORE??
Post by: qnx on June 09, 2010, 11:49:42 AM
Hi
I`m new on this  forum  :-) 
I  setup on my hard drive TinyCore v2 and everythings   works good except  autostartup application during boot  TC :-(

How can I start  Lighttpd during  boot  systems ?

How can i autostart  some others  shell scripts  during the booting system ?

Where i should keep  my directory  for lighttpd  ? because after  reboot  it`s disappear

thx for answers
Title: Re: How to autostart lighttpd in TinyCORE??
Post by: danielibarnes on June 09, 2010, 12:06:10 PM
Quote
How can I start  Lighttpd during  boot  systems ?
How can i autostart  some others  shell scripts  during the booting system ?
Add your custom startup scripts to /opt/bootlocal.sh, then consult the wiki (http://wiki.tinycorelinux.com/tiki-index.php) on how to back it up.

Quote
Where i should keep  my directory  for lighttpd  ?
On some form of persistent storage. Are you running Tiny Core solely from CD?
Title: Re: How to autostart lighttpd in TinyCORE??
Post by: qnx on June 09, 2010, 12:31:22 PM
I do it like you wrote 
i add  command to   /opt/bootlocal.sh
Code: [Select]
lighttpd -f /home/tc/lighttpd
I installed  tinycore on hardrive  /dev/hda1
where i should put  directory with index.html ?
Title: Re: How to autostart lighttpd in TinyCORE??
Post by: batnas on June 09, 2010, 02:35:48 PM
the '-f'-flag tells lighttpd where your 'lighttpd.conf'-file is. In the lighttpd.conf you specify where your www-root should be.

I con show you mine, if You'd like.

\\Batnas
Title: Re: How to autostart lighttpd in TinyCORE??
Post by: qnx on June 09, 2010, 02:43:48 PM
@batanas
I now that  everythings  ok  lighttpd works  but  i dont know  were  put my www-root-directory ?? Now my www-root-directory  are /home/www  but when i reboot  system /home/www disappears :-(  Where i should put  www-root-directory  to avoid that ??
Title: Re: How to autostart lighttpd in TinyCORE??
Post by: batnas on June 09, 2010, 03:06:44 PM
Your problem is, that /home/www is not persistent.
You can do 2 things:

\\Batnas
Title: Re: How to autostart lighttpd in TinyCORE??
Post by: danielibarnes on June 09, 2010, 03:08:31 PM
www-root needs to be on persistent storage, which in your case is /mnt/hda1, so /mnt/hda1/www should be sufficient so long as it is mounted during startup. Whether or not that occurs automatically depends on how you installed Tiny Core to /dev/hda1.