summaryrefslogtreecommitdiff
path: root/ctdb/config
diff options
context:
space:
mode:
Diffstat (limited to 'ctdb/config')
-rw-r--r--ctdb/config/ctdb.service1
-rw-r--r--ctdb/config/ctdb.sysconfig14
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