D-Link Forums

The Graveyard - Products No Longer Supported => D-Link Storage => ShareCenter® Add-on Applications => Topic started by: sfynx on March 19, 2017, 12:12:36 PM

Title: Help how to auto start lighttpd server?
Post by: sfynx 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.
Title: Re: Help how to auto start lighttpd server?
Post by: rusatch 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 &
to
/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.