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:
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:
Hopefully i could help someone with this post and this will be added in a future release of DA.
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.