mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-01-11 03:11:50 +00:00
set systemd service file limit to 32768
This commit is contained in:
8
debian/aptly-api.default
vendored
8
debian/aptly-api.default
vendored
@@ -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"
|
||||
|
||||
3
debian/aptly-api.service
vendored
3
debian/aptly-api.service
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user