From b2d05828a5847cae9cdf575b079825f3a2bf7e3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Roth?= Date: Wed, 30 Oct 2024 17:36:05 +0100 Subject: [PATCH 1/2] set systemd service file limit to 32768 --- debian/aptly-api.default | 8 +++++++- debian/aptly-api.service | 3 ++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/debian/aptly-api.default b/debian/aptly-api.default index a407ec52..5950dde4 100644 --- a/debian/aptly-api.default +++ b/debian/aptly-api.default @@ -1,2 +1,8 @@ -# Default settings for aptly-api +# Default settings for aptly-api systemd service + +# bind to host:port LISTEN_ADDRESS='localhost:8080' + +# aptly options: +# -no-lock allow aptly commands in parallel with api service (no global database lock, but lock per request) +APTLY_OPTIONS="-no-lock" diff --git a/debian/aptly-api.service b/debian/aptly-api.service index 5e447ace..16d6383c 100644 --- a/debian/aptly-api.service +++ b/debian/aptly-api.service @@ -9,7 +9,8 @@ Group=aptly-api Environment=TERM=dumb WorkingDirectory=~ EnvironmentFile=/etc/default/aptly-api -ExecStart=/usr/bin/aptly api serve -config=/etc/aptly.conf -no-lock -listen=${LISTEN_ADDRESS} +ExecStart=/usr/bin/aptly api serve -config=/etc/aptly.conf ${APTLY_OPTIONS} -listen=${LISTEN_ADDRESS} +LimitNOFILE=32768 [Install] WantedBy=multi-user.target From 2f540a8026e2bb0901f8aa266ce9e21448c88c98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Roth?= Date: Wed, 20 Nov 2024 13:49:47 +0100 Subject: [PATCH 2/2] debian: do not conflict with gnupg1 --- debian/control | 1 - 1 file changed, 1 deletion(-) diff --git a/debian/control b/debian/control index cf1723e0..f7ed7f09 100644 --- a/debian/control +++ b/debian/control @@ -89,7 +89,6 @@ Package: aptly Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends}, bzip2, xz-utils, gpgv, gpg Suggests: graphviz -Conflicts: gnupg1, gpgv1 Built-Using: ${misc:Static-Built-Using}, ${misc:Built-Using} Description: Swiss army knife for Debian repository management - main package It offers several features making it easy to manage Debian package