From: Michael Tokarev Date: Fri, 9 Sep 2022 09:49:55 +0000 (+0300) Subject: create ctdb pid directory X-Git-Tag: archive/raspbian/2%4.22.3+dfsg-4+rpi1^2~11 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=bea6506f1a3bbca3dc99a77484c74999c5840257;p=samba.git create ctdb pid directory (which is /run/ctdb/). Create it in the systemd service file (using RuntimeDirectory directive) and in the sysv-init script. Gbp-Pq: Name ctdb-create-piddir.patch --- diff --git a/ctdb/config/ctdb.init b/ctdb/config/ctdb.init index 6a7f7812..d49419a5 100755 --- a/ctdb/config/ctdb.init +++ b/ctdb/config/ctdb.init @@ -77,6 +77,7 @@ start() return $RETVAL ;; debian) + mkdir -p -m0755 ${pidfile%/*} eval start-stop-daemon --start --quiet --background --exec "$ctdbd" ;; esac diff --git a/packaging/systemd/ctdb.service.in b/packaging/systemd/ctdb.service.in index 7905a93e..eefc7468 100644 --- a/packaging/systemd/ctdb.service.in +++ b/packaging/systemd/ctdb.service.in @@ -10,6 +10,7 @@ LimitCORE=infinity LimitNOFILE=1048576 TasksMax=4096 PIDFile=@CTDB_RUNDIR@/ctdbd.pid +RuntimeDirectory=ctdb ExecStart=@SBINDIR@/ctdbd ExecStop=@BINDIR@/ctdb shutdown KillMode=control-group