Nginx reload issue debian 7

seleno

New member
Joined
Feb 11, 2014
Messages
1
We installed nginx + php-fpm on a debian 7(64 bit) machine.
DirectAdmin version 1.44.3 with custombuild 2.0

Installation went well and runs fine, until nginx needs to be reloaded after creating a new user of via init.d script.
The follow error occurred:
Code:
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
$Reloading nginx: /etc/init.d/nginx: line 59: killproc: command not found
killproc is a function in /lib/lsb/init-functions but it isn't loaded in the /etc/init.d/nginx file.

Solution:
Add following line at the beginning of the script:

Code:
lsb_functions="/lib/lsb/init-functions"
if test -f $lsb_functions ; then
  . $lsb_functions
fi
Hopefully i could help someone with this post and this will be added in a future release of DA.
 

DirectAdmin Support

Administrator
Staff member
Joined
Feb 27, 2003
Messages
8,920
Hello,

Thanks for the report.
A new Debian boot script is available if you're affected by this bug:
Code:
wget -O /etc/init.d/nginx http://files1.directadmin.com/services/custombuild/nginx.boot.debian
I went with a different approach, just a simple HUP to the master PID (none of our other Debian scripts use killproc, so wanted to keep them uniform).

John
 
Top