initscript: Update systemd configuration to put PID file in /run/ctdb
authorMartin Schwenke <martin@meltin.net>
Wed, 23 Oct 2013 00:28:26 +0000 (11:28 +1100)
committerAmitay Isaacs <amitay@gmail.com>
Fri, 25 Oct 2013 01:06:07 +0000 (12:06 +1100)
Elsewhere we're moving the socket to /var/run/ctdb.  We might end up
with PID files and sockets for other daemons later, so let's call the
directory "ctdb" instead of "ctdbd".

Signed-off-by: Martin Schwenke <martin@meltin.net>
config/ctdb.service

index 4ad03a8d5ea93bd218e67d26bfc54a10a0656864..ea37c30bd2e4a3fb4e13c846518fa31b30ec49e5 100644 (file)
@@ -5,9 +5,9 @@ After=network.target
 [Service]
 Type=forking
 LimitCORE=infinity
-PIDFile=/run/ctdbd/ctdbd.pid
-ExecStart=/usr/sbin/ctdbd_wrapper /run/ctdbd/ctdbd.pid start
-ExecStop=/usr/sbin/ctdbd_wrapper /run/ctdbd/ctdbd.pid stop
+PIDFile=/run/ctdb/ctdbd.pid
+ExecStart=/usr/sbin/ctdbd_wrapper /run/ctdb/ctdbd.pid start
+ExecStop=/usr/sbin/ctdbd_wrapper /run/ctdb/ctdbd.pid stop
 KillMode=control-group
 Restart=no