From c542199bd5c1522c35c7971bd476604c836195aa Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 27 Jul 2021 15:24:56 +0200 Subject: [PATCH] debian: use tmpfiles instead of rundir unit --- debian/rules | 1 - .../taler-exchange.taler-exchange-rundir.service | 14 -------------- debian/taler-exchange.tmpfiles | 4 ++++ 3 files changed, 4 insertions(+), 15 deletions(-) delete mode 100644 debian/taler-exchange.taler-exchange-rundir.service create mode 100644 debian/taler-exchange.tmpfiles diff --git a/debian/rules b/debian/rules index 39d23525e..ab20b7cea 100755 --- a/debian/rules +++ b/debian/rules @@ -33,7 +33,6 @@ override_dh_auto_clean: override_dh_installsystemd: # Need to specify units manually, since we have multiple # and dh_installsystemd by default only looks for ".service". - dh_installsystemd -ptaler-exchange --name=taler-exchange-rundir --no-start --no-enable dh_installsystemd -ptaler-exchange --name=taler-exchange-httpd --no-start --no-enable dh_installsystemd -ptaler-exchange --name=taler-exchange-aggregator --no-start --no-enable dh_installsystemd -ptaler-exchange --name=taler-exchange-transfer --no-start --no-enable diff --git a/debian/taler-exchange.taler-exchange-rundir.service b/debian/taler-exchange.taler-exchange-rundir.service deleted file mode 100644 index b7614c0d9..000000000 --- a/debian/taler-exchange.taler-exchange-rundir.service +++ /dev/null @@ -1,14 +0,0 @@ -[Unit] -Description=Shared private runtime directory for the GNU Taler exchange - -[Service] -Type=oneshot -RuntimeDirectory=taler-exchange-private -RuntimeDirectoryMode=2660 -User=root -Group=taler-exchange-secmod -ExecStart=/bin/true -RemainAfterExit=yes - -[Install] -WantedBy=multi-user.target diff --git a/debian/taler-exchange.tmpfiles b/debian/taler-exchange.tmpfiles new file mode 100644 index 000000000..382295932 --- /dev/null +++ b/debian/taler-exchange.tmpfiles @@ -0,0 +1,4 @@ +# Type Path Mode User Group Age Argument + +# Directory for secmod server and client sockets +d /var/taler-exchange 2660 root taler-exchange-secmod - -