Replaces nice with cpu shares

This commit is contained in:
pierreozoux 2015-05-23 17:55:59 +02:00
parent 930c73fff3
commit 1f33ea5047
2 changed files with 2 additions and 1 deletions

View file

@ -20,6 +20,7 @@ ExecStart=/bin/bash -euxc ' \
--rm \
--name backup-%i \
-h backup.container \
--cpu-shares=100 \
-v /root:/root \
-v /data/domains/%i:/backup indiepaas/duplicity \
--full-if-older-than 1W \

View file

@ -33,11 +33,11 @@ ExecStartPre=/bin/bash -euxc '\
-p$mysql_passwd \
-h db > /data/domains/%i/mysql/dump.sql; \
fi'
ExecStart=/bin/bash -euxc ' \
/bin/docker run \
--rm \
--name backup-%i \
--cpu-shares=100 \
-h backup.container \
-v /root:/root \
-v /data/domains/%i:/backup indiepaas/duplicity \