From 7e31a1382fd5eb45448042960e90885462b1452a Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Tue, 24 Apr 2018 16:35:16 +1000 Subject: ctdb-config: Add default ctdb.sysconfig file, update ctdb.service Install ctdb.sysconfig in RPM. Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- ctdb/config/ctdb.service | 1 + ctdb/config/ctdb.sysconfig | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 ctdb/config/ctdb.sysconfig (limited to 'ctdb/config') 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 -- cgit v1.2.1