Pass -no-lock param to aptly api
diff --git a/aptly/files/aptly-api.service b/aptly/files/aptly-api.service
index 9e44fda..0102996 100644
--- a/aptly/files/aptly-api.service
+++ b/aptly/files/aptly-api.service
@@ -12,7 +12,7 @@
[Service]
User=aptly
EnvironmentFile=/etc/default/aptly-api
-ExecStart={{ command }} api serve -listen=${LISTEN_HOST}:${LISTEN_PORT}
+ExecStart={{ command }} api serve -listen=${LISTEN_HOST}:${LISTEN_PORT} -no-lock
Restart=on-failure
[Install]
diff --git a/aptly/files/init.d/aptly-api b/aptly/files/init.d/aptly-api
index 4065e31..1d3cad2 100755
--- a/aptly/files/init.d/aptly-api
+++ b/aptly/files/init.d/aptly-api
@@ -38,7 +38,7 @@
# Get slave.jar from master
if start-stop-daemon -c ${APTLY_USER} --background --start --quiet \
--oknodo -m --pidfile ${PIDFILE} --exec ${COMMAND} -- ${COMMAND_ARGS} \
- -listen=${LISTEN_HOST}:${LISTEN_PORT}; then
+ -listen=${LISTEN_HOST}:${LISTEN_PORT} -no-lock; then
log_end_msg 0 || true
else
log_end_msg 1 || true