set systemd service file limit to 32768

This commit is contained in:
André Roth
2024-10-30 17:36:05 +01:00
parent b7e91f0994
commit b2d05828a5
2 changed files with 9 additions and 2 deletions

View File

@@ -1,2 +1,8 @@
# Default settings for aptly-api # Default settings for aptly-api systemd service
# bind to host:port
LISTEN_ADDRESS='localhost:8080' 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"

View File

@@ -9,7 +9,8 @@ Group=aptly-api
Environment=TERM=dumb Environment=TERM=dumb
WorkingDirectory=~ WorkingDirectory=~
EnvironmentFile=/etc/default/aptly-api 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] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target