#!/bin/sh #---------------------------------------------------------------------------- # /etc/init.d/nginx - start/stop/status script for nginx # # Creation: 2014-05-11 ap # Last Update: $Id$ # # Copyright (c) 2001-2022 Ansgar Puester, ansgar.puester(at)freenet(dot)de # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. #---------------------------------------------------------------------------- NAME=nginx DAEMON=/sbin/${NAME} pidfile=/var/run/${NAME}.pid # read functions . /etc/init.d/functions # set variables nginx_file=/etc/config.d/nginx # read configuration . ${nginx_file} # make bash_completion happy bash_completion_string="Usage: $0 {start|stop|status|restart|forcestart|reload}" # --------------------------------------------------------------------------- # usage # --------------------------------------------------------------------------- usage () { cat <