Results 1 to 2 of 2

Thread: Nginx reload issue debian 7

  1. #1
    Join Date
    Feb 2014
    Posts
    1

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

  2. #2
    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

Posting Permissions

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