Results 1 to 2 of 2

Thread: Nginx reload issue debian 7

  1. #1
    Join Date
    Feb 2014

    Post Nginx reload issue debian 7

    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:
    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.

    Add following line at the beginning of the script:

    if test -f $lsb_functions ; then
      . $lsb_functions
    Hopefully i could help someone with this post and this will be added in a future release of DA.

  2. #2

    Thanks for the report.
    A new Debian boot script is available if you're affected by this bug:
    wget -O /etc/init.d/nginx
    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).


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts