-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: * Various bug fixes
- Loading branch information
Mike Belov
committed
Nov 6, 2018
1 parent
cb7469a
commit 7c2aa46
Showing
16 changed files
with
168 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,25 @@ | ||
Package: nginx-amplify-agent | ||
Description: NGINX Amplify Agent | ||
The NGINX Amplify Agent is a small, Python application that provides | ||
system and NGINX metric collection. It is part of NGINX Amplify - | ||
the monitoring and configuration assistance service for NGINX. | ||
. | ||
This package installs and runs NGINX Amplify Agent daemon. | ||
. | ||
See http://nginx.com/amplify for more information | ||
License: 2-clause BSD-like license | ||
Source: nginx-amplify-agent | ||
Homepage: https://github.com/nginxinc | ||
Maintainer: Mike Belov <dedm@nginx.com> | ||
Section: python | ||
Priority: optional | ||
Version: 0.0-0 | ||
Build-Depends: debhelper (>= 9~), | ||
dh-systemd, | ||
dpkg-dev (>= 1.16.1~) | ||
Standards-Version: 3.9.8.0 | ||
|
||
Package: nginx-amplify-agent | ||
Description: NGINX Amplify Agent | ||
The NGINX Amplify Agent is a small, Python application that provides | ||
system and NGINX metric collection. It is part of NGINX Amplify - | ||
the monitoring and configuration assistance service for NGINX. | ||
. | ||
This package installs and runs NGINX Amplify Agent daemon. | ||
. | ||
See http://nginx.com/amplify for more information | ||
Architecture: any | ||
Depends: python (>=2.6), lsb-release | ||
Depends: ${misc:Depends}, | ||
${shlibs:Depends}, | ||
python (>=2.6), | ||
lsb-release, | ||
adduser |
21 changes: 21 additions & 0 deletions
21
packages/nginx-amplify-agent/deb/DEBIAN/nginx-amplify-agent.amplify-agent.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[Unit] | ||
Description=NGINX Amplify Agent | ||
Documentation=https://amplify.nginx.com/docs/ | ||
After=network-online.target remote-fs.target nss-lookup.target | ||
Wants=network-online.target | ||
|
||
[Service] | ||
User=nginx | ||
Group=nginx | ||
Type=forking | ||
PIDFile=/var/run/amplify-agent/amplify-agent.pid | ||
PermissionsStartOnly=true | ||
ExecStartPre=/bin/mkdir -p /var/run/amplify-agent | ||
ExecStartPre=/bin/chown nginx /var/run/amplify-agent | ||
ExecStartPre=/bin/chown nginx /etc/amplify-agent/agent.conf | ||
ExecStartPre=/bin/chown nginx /var/log/amplify-agent/agent.log | ||
ExecStart=/usr/bin/nginx-amplify-agent.py start --config=/etc/amplify-agent/agent.conf --pid=/var/run/amplify-agent/amplify-agent.pid | ||
ExecStop=/usr/bin/nginx-amplify-agent.py stop --config=/etc/amplify-agent/agent.conf --pid=/var/run/amplify-agent/amplify-agent.pid | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
case "$1" in | ||
purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) | ||
;; | ||
*) | ||
echo "postrm called with unknown argument \`$1'" >&2 | ||
exit 1 | ||
esac | ||
|
||
#DEBHELPER# | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,41 @@ | ||
#!/usr/bin/make -f | ||
|
||
%: | ||
dh $@ --with=python-central | ||
INSTALLDIR = $(CURDIR)/debian/nginx-amplify-agent | ||
|
||
build-arch: | ||
dh_testdir | ||
|
||
build-indep: | ||
dh_testdir | ||
|
||
build: build-arch build-indep | ||
dh_testdir | ||
|
||
install: | ||
dh_testdir | ||
|
||
binary-indep: build install | ||
dh_testdir | ||
dh_installdebconf | ||
dh_installinit -i -pnginx-amplify-agent --no-restart-on-upgrade --no-start --name=amplify-agent -- defaults 99 01 | ||
dh_systemd_enable -pnginx-amplify-agent --name=amplify-agent amplify-agent.service | ||
|
||
binary-arch: install | ||
dh_testdir | ||
dh_testroot | ||
dh_installchangelogs -a | ||
dh_installdocs -a | ||
dh_lintian -a | ||
dh_link -aA | ||
dh_compress -a | ||
dh_fixperms -a | ||
dh_installdeb -a | ||
dh_shlibdeps -a | ||
dh_gencontrol -a | ||
dh_md5sums -a | ||
dh_builddeb nginx-amplify-agent | ||
|
||
binary: binary-indep binary-arch | ||
|
||
clean: | ||
dh_testdir |
21 changes: 21 additions & 0 deletions
21
packages/nginx-amplify-agent/rpm/nginx-amplify-agent.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[Unit] | ||
Description=NGINX Amplify Agent | ||
Documentation=https://amplify.nginx.com/docs/ | ||
After=network-online.target remote-fs.target nss-lookup.target | ||
Wants=network-online.target | ||
|
||
[Service] | ||
User=nginx | ||
Group=nginx | ||
Type=forking | ||
PIDFile=/var/run/amplify-agent/amplify-agent.pid | ||
PermissionsStartOnly=true | ||
ExecStartPre=/bin/mkdir -p /var/run/amplify-agent | ||
ExecStartPre=/bin/chown nginx /var/run/amplify-agent | ||
ExecStartPre=/bin/chown nginx /etc/amplify-agent/agent.conf | ||
ExecStartPre=/bin/chown nginx /var/log/amplify-agent/agent.log | ||
ExecStart=/usr/bin/nginx-amplify-agent.py start --config=/etc/amplify-agent/agent.conf --pid=/var/run/amplify-agent/amplify-agent.pid | ||
ExecStop=/usr/bin/nginx-amplify-agent.py stop --config=/etc/amplify-agent/agent.conf --pid=/var/run/amplify-agent/amplify-agent.pid | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.4.0-1 | ||
1.4.1-1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters