debian: use tmpfiles instead of rundir unit

This commit is contained in:
Florian Dold 2021-07-27 15:24:56 +02:00
parent 9624d92a65
commit c542199bd5
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B
3 changed files with 4 additions and 15 deletions

1
debian/rules vendored
View File

@ -33,7 +33,6 @@ override_dh_auto_clean:
override_dh_installsystemd: override_dh_installsystemd:
# Need to specify units manually, since we have multiple # Need to specify units manually, since we have multiple
# and dh_installsystemd by default only looks for "<package>.service". # and dh_installsystemd by default only looks for "<package>.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-httpd --no-start --no-enable
dh_installsystemd -ptaler-exchange --name=taler-exchange-aggregator --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 dh_installsystemd -ptaler-exchange --name=taler-exchange-transfer --no-start --no-enable

View File

@ -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

4
debian/taler-exchange.tmpfiles vendored Normal file
View File

@ -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 - -