diff options
author | Martin Schwenke <martin@meltin.net> | 2018-04-24 16:35:16 +1000 |
---|---|---|
committer | Amitay Isaacs <amitay@samba.org> | 2018-05-12 06:11:17 +0200 |
commit | 7e31a1382fd5eb45448042960e90885462b1452a (patch) | |
tree | e44803aa61dddb1d1728cbef70b6f531449579c5 /ctdb/config | |
parent | 74230c59b6a8add7310c4ec39ef315cc67156b5a (diff) | |
download | samba-7e31a1382fd5eb45448042960e90885462b1452a.tar.gz |
ctdb-config: Add default ctdb.sysconfig file, update ctdb.service
Install ctdb.sysconfig in RPM.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb/config')
-rw-r--r-- | ctdb/config/ctdb.service | 1 | ||||
-rw-r--r-- | ctdb/config/ctdb.sysconfig | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/ctdb/config/ctdb.service b/ctdb/config/ctdb.service index 627803c51ac..675b3147417 100644 --- a/ctdb/config/ctdb.service +++ b/ctdb/config/ctdb.service @@ -6,6 +6,7 @@ After=network-online.target time-sync.target [Service] Type=forking LimitCORE=infinity +LimitNOFILE=1048576 PIDFile=/run/ctdb/ctdbd.pid ExecStart=/usr/sbin/ctdbd_wrapper start ExecStop=/usr/sbin/ctdbd_wrapper stop diff --git a/ctdb/config/ctdb.sysconfig b/ctdb/config/ctdb.sysconfig new file mode 100644 index 00000000000..2ec0e9d373e --- /dev/null +++ b/ctdb/config/ctdb.sysconfig @@ -0,0 +1,14 @@ +# If using SYSV init, install this as /etc/sysconfig/ctdb, +# /etc/default/ctdb or similar + +# Allow 1M open files +ulimit -n 1048576 + +# Allow core files to be created +ulimit -c unlimited + +# Useful if default detection doesn't work +# CTDB_INIT_STYLE=debian + +# If ctdbd takes a long time to start +# CTDB_STARTUP_TIMEOUT=20 |