Revert "Substitute bindir for nghttpx.service"
This reverts commit 7bb154f768
.
This commit is contained in:
parent
7bb154f768
commit
2a37a28d72
|
@ -650,8 +650,6 @@ AC_CONFIG_FILES([
|
||||||
doc/asio_http2_client.h.rst
|
doc/asio_http2_client.h.rst
|
||||||
doc/contribute.rst
|
doc/contribute.rst
|
||||||
contrib/Makefile
|
contrib/Makefile
|
||||||
contrib/nghttpx-init.template
|
|
||||||
contrib/nghttpx.service.template
|
|
||||||
])
|
])
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1 @@
|
||||||
nghttpx-init
|
nghttpx-init
|
||||||
nghttpx-init.template
|
|
||||||
nghttpx.service
|
|
||||||
nghttpx.service.template
|
|
||||||
|
|
||||||
|
|
|
@ -21,18 +21,19 @@
|
||||||
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||||
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
EXTRA_DIST = nghttpx-init.template.in nghttpx.service.template.in \
|
EXTRA_DIST = nghttpx-init.in nghttpx.service nghttpx-logrotate
|
||||||
nghttpx-logrotate
|
|
||||||
|
|
||||||
edit = sed -e 's|$$(bindir)|$(bindir)|g'
|
edit = sed -e 's|@bindir[@]|$(bindir)|g'
|
||||||
|
|
||||||
nghttpx-init nghttpx.service: %: $(srcdir)/%.template
|
nghttpx-init: Makefile
|
||||||
rm -f $@ $@.tmp
|
rm -f $@ $@.tmp
|
||||||
$(edit) $< > $@.tmp
|
$(edit) $(srcdir)/$@.in > $@.tmp
|
||||||
chmod +x $@.tmp
|
chmod +x $@.tmp
|
||||||
mv $@.tmp $@
|
mv $@.tmp $@
|
||||||
|
|
||||||
all-local: nghttpx-init nghttpx.service
|
nghttpx-init: $(srcdir)/nghttpx-init.in
|
||||||
|
|
||||||
|
all-local: nghttpx-init
|
||||||
|
|
||||||
clean-local:
|
clean-local:
|
||||||
-rm -f nghttpx-init nghttpx-init.tmp nghttpx.service nghttpx.service.tmp
|
-rm -f nghttpx-init nghttpx-init.tmp
|
||||||
|
|
|
@ -17,8 +17,8 @@
|
||||||
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin
|
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin
|
||||||
DESC="HTTP/2 reverse proxy"
|
DESC="HTTP/2 reverse proxy"
|
||||||
NAME=nghttpx
|
NAME=nghttpx
|
||||||
# Depending on the configuration, binary may be located under $(bindir)
|
# Depending on the configuration, binary may be located under @sbindir@
|
||||||
DAEMON=$(bindir)/$NAME
|
DAEMON=@bindir@/$NAME
|
||||||
PIDFILE=/var/run/$NAME.pid
|
PIDFILE=/var/run/$NAME.pid
|
||||||
DAEMON_ARGS="--conf /etc/nghttpx/nghttpx.conf --pid-file=$PIDFILE"
|
DAEMON_ARGS="--conf /etc/nghttpx/nghttpx.conf --pid-file=$PIDFILE"
|
||||||
SCRIPTNAME=/etc/init.d/$NAME
|
SCRIPTNAME=/etc/init.d/$NAME
|
|
@ -4,7 +4,7 @@ After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
ExecStart=$(bindir)/nghttpx --errorlog-syslog
|
ExecStart=/usr/bin/nghttpx --errorlog-syslog
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
Loading…
Reference in New Issue