mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
set systemd service file limit to 32768
This commit is contained in:
Vendored
+7
-1
@@ -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"
|
||||||
|
|||||||
Vendored
+2
-1
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user