Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2009
    Posts
    183

    Script executed when the server starts

    Hello,

    I would like to execute "lighttpd -f /etc/lighttpd.conf" every time when the server starts/boot. Any ideas how it can be done?

    Thanks

  2. #2
    Depends of the Linux version you are using..Basically you should be able to do that by adding in /etc/rc.local that line.

    or you can specify the config file from /etc/sysconfig/lighttpd
    LIGHTTPD_CONF_PATH=/etc/lighttpd.conf

  3. #3
    Yep the easiest way is to add the command to /etc/rc.local
    Remember to specify the full path to lighttpd
    Accelerated Hosting - From Constant Internet
    Automatically serving your website from the nearest server
    Get hosted on our global network! America / Europe / Asia

Similar Threads

  1. query executed at certain time
    By VDRS Host in forum Programming Discussion
    Replies: 1
    Last Post: 01-10-2007, 09:45 PM
  2. Australian to be executed in Singapore
    By Torith in forum Web Hosting Lounge
    Replies: 52
    Last Post: 10-23-2005, 08:49 PM
  3. JSP codes seems not executed correctly
    By tllcll in forum Programming Discussion
    Replies: 0
    Last Post: 08-29-2005, 12:48 AM
  4. female aid worker executed
    By sailor in forum Web Hosting Lounge
    Replies: 20
    Last Post: 11-17-2004, 04:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •