From 9acdd25f1eccc1441ff0948874afe38e9d32e91b Mon Sep 17 00:00:00 2001 From: Roman Tsisyk <roman@tsisyk.com> Date: Wed, 28 Sep 2016 11:47:12 +0300 Subject: [PATCH] Document how to override systemd settings Closes #1657 --- extra/dist/tarantool@.service.in | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/extra/dist/tarantool@.service.in b/extra/dist/tarantool@.service.in index cf22e774a7..e2973876cf 100644 --- a/extra/dist/tarantool@.service.in +++ b/extra/dist/tarantool@.service.in @@ -1,13 +1,35 @@ # Please don't modify this file in-place, because it will be overwrriten # during package upgrades. It is recommended to copy this file to # /etc/systemd/system and then modify the chosen settings. Alternatively, -# one can create a directory named unit.d/ within /etc/systemd/system and +# one can create a directory named service.d/ within /etc/systemd/system and # place a drop-in file name.conf there that only changes the specific # settings one is interested in. # -# Please see http://tarantool.org/doc/book/administration.html -# for additional information. +# For example, if you want to increase the maximum number of open files +# for example.lua instance, you need to perform the following steps: # +# 1. Create directory /etc/systemd/system/tarantool@example.service.d/ with +# file limits.conf containing: +# +# [Service] +# LimitNOFILE=10000 +# +# 2. Reload systemd daemon +# +# systemctl daemon-reload +# +# 3. Check new settings +# +# systemctl show tarantool@example|grep LimitNOFILE +# +# 4. Restart tarantool@example service +# +# systemctl restart tarantool@example +# +# Please see http://tarantool.org/doc/book/administration.html and +# systemd.service(5) man page for additional information. +# + [Unit] Description=Tarantool Database Server After=network.target -- GitLab