• December 02, 2020, 11:35:10 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  


This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: Help how to auto start lighttpd server?  (Read 1859 times)


  • Level 1 Member
  • *
  • Posts: 9
Help how to auto start lighttpd server?
« on: March 19, 2017, 12:12:36 PM »

Hi all, so i followed a few tutorials to get a web page running, one part of the tutorial was to edit init.sh, so i did
vi /mnt/HD/HD_a2/Nas_Prog/Joomla/init.sh and added
/usr/sbin/lighttpd-angel -D -m /usr/local/lib -f /mnt/HD/HD_a2/Nas_Prog/Joomla/lighttpd.conf &
like shown in the tutorial and saved, altho the changes are there, every time i restart the sharecenter the server does not auto start,
so i have to ssh every time and do this
/usr/sbin/lighttpd-angel -D -m /usr/local/lib -f /mnt/HD/HD_a2/Nas_Prog/Joomla/lighttpd.conf &
to get the server running again, what am i doing wrong? how can i get it restarting the server automaticly?

Thanks in advance.


  • Level 2 Member
  • **
  • Posts: 65
Re: Help how to auto start lighttpd server?
« Reply #1 on: March 20, 2017, 08:58:24 PM »

Let's see /mnt/HD/HD_a2/Nas_Prog/Joomla/init.sh
cat /mnt/HD/HD_a2/Nas_Prog/Joomla/init.sh

or try to change string
/usr/sbin/lighttpd-angel -D -m /usr/local/lib -f /mnt/HD/HD_a2/Nas_Prog/Joomla/lighttpd.conf &
/usr/sbin/lighttpd-angel -m /usr/local/lib -f /mnt/HD/HD_a2/Nas_Prog/Joomla/lighttpd.conf
because using option "-D" (don't go to background) and "&" (run in the background) is mutually exclusive.
« Last Edit: March 20, 2017, 09:13:23 PM by rusatch »