summaryrefslogtreecommitdiffstats
path: root/debian/ctdb.service
diff options
context:
space:
mode:
Diffstat (limited to 'debian/ctdb.service')
-rw-r--r--debian/ctdb.service20
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/ctdb.service b/debian/ctdb.service
new file mode 100644
index 0000000..72ffe7a
--- /dev/null
+++ b/debian/ctdb.service
@@ -0,0 +1,20 @@
+[Unit]
+Description=CTDB
+Documentation=man:ctdbd(1) man:ctdb(7)
+After=network-online.target time-sync.target
+ConditionFileNotEmpty=/etc/ctdb/nodes
+
+[Service]
+Type=forking
+LimitCORE=infinity
+LimitNOFILE=1048576
+TasksMax=4096
+PIDFile=/run/ctdb/ctdbd.pid
+RuntimeDirectory=ctdb
+ExecStart=/usr/sbin/ctdbd
+ExecStop=/usr/bin/ctdb shutdown
+KillMode=control-group
+Restart=no
+
+[Install]
+WantedBy=multi-user.target