Portal Home > Knowledgebase > Articles Database > Script executed when the server starts
Script executed when the server starts
Posted by Markovic, 09-06-2009, 06:08 AM |
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
|
Posted by aibo, 09-06-2009, 06:34 AM |
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
|
Posted by CI-Andrew, 09-08-2009, 10:36 AM |
Yep the easiest way is to add the command to /etc/rc.local
Remember to specify the full path to lighttpd
|
Add to Favourites Print this Article
Also Read