WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: How to autostart lighttpd in TinyCORE??  (Read 5419 times)

Offline qnx

  • Newbie
  • *
  • Posts: 3
How to autostart lighttpd in TinyCORE??
« 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

Offline danielibarnes

  • Hero Member
  • *****
  • Posts: 548
Re: How to autostart lighttpd in TinyCORE??
« Reply #1 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 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?

Offline qnx

  • Newbie
  • *
  • Posts: 3
Re: How to autostart lighttpd in TinyCORE??
« Reply #2 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 ?

Offline batnas

  • Full Member
  • ***
  • Posts: 122
Re: How to autostart lighttpd in TinyCORE??
« Reply #3 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

Offline qnx

  • Newbie
  • *
  • Posts: 3
Re: How to autostart lighttpd in TinyCORE??
« Reply #4 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 ??

Offline batnas

  • Full Member
  • ***
  • Posts: 122
Re: How to autostart lighttpd in TinyCORE??
« Reply #5 on: June 09, 2010, 03:06:44 PM »
Your problem is, that /home/www is not persistent.
You can do 2 things:
  • Add 'home/www' to '/opt/.filetool.lst' - makes TC do backup of the folder
  • Move you www-folder to some persistent place e.g. harddisk (hda1)   <- Probably the best solution as www-folders tend to grow ;)

\\Batnas
« Last Edit: June 09, 2010, 03:10:59 PM by batnas »

Offline danielibarnes

  • Hero Member
  • *****
  • Posts: 548
Re: How to autostart lighttpd in TinyCORE??
« Reply #6 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.