debian: rundir service
This commit is contained in:
parent
7bc7ee58ee
commit
63590bb350
7
debian/etc/taler/exchange-system.conf
vendored
7
debian/etc/taler/exchange-system.conf
vendored
@ -6,14 +6,15 @@
|
|||||||
|
|
||||||
[PATHS]
|
[PATHS]
|
||||||
|
|
||||||
# Move runtime data "tmp" directory to /var/lib/taler-exchange/
|
TALER_RUNTIME_DIR = /run/taler-exchange-private
|
||||||
# to possibly provide additional protection from unwarranted access.
|
|
||||||
TALER_RUNTIME_DIR = /var/lib/taler-exchange/tmp/
|
|
||||||
|
|
||||||
|
|
||||||
[exchange]
|
[exchange]
|
||||||
# Debian package is configured to use a reverse proxy with a UNIX
|
# Debian package is configured to use a reverse proxy with a UNIX
|
||||||
# domain socket. See nginx/apache configuration files.
|
# domain socket. See nginx/apache configuration files.
|
||||||
|
#
|
||||||
|
# FIXME: This should be set to something like "NONE"
|
||||||
|
# since systemd creates the socket for us.
|
||||||
SERVE = UNIX
|
SERVE = UNIX
|
||||||
UNIXPATH = /var/lib/taler-exchange/exchange.sock
|
UNIXPATH = /var/lib/taler-exchange/exchange.sock
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=GNU Taler payment system exchange REST API
|
Description=GNU Taler payment system exchange REST API
|
||||||
AssertPathExists=/var/lib/taler-exchange/
|
Requires=taler-exchange-rundir.service taler-exchange-httpd.socket taler-exchange-secmod-rsa.service taler-exchange-secmod-eddsa.service
|
||||||
Requires=taler-exchange-httpd.socket taler-exchange-secmod-rsa.service taler-exchange-secmod-eddsa.service
|
|
||||||
Wants=taler-exchange-wirewatch.service taler-exchange-aggregator.service taler-exchange-transfer.service
|
Wants=taler-exchange-wirewatch.service taler-exchange-aggregator.service taler-exchange-transfer.service
|
||||||
After=postgres.service network.target
|
After=postgres.service network.target
|
||||||
|
|
||||||
|
14
debian/taler-exchange.taler-exchange-rundir.service
vendored
Normal file
14
debian/taler-exchange.taler-exchange-rundir.service
vendored
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Private runtime directory for the GNU Taler exchange
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
# We just want to create the run directory
|
||||||
|
Type=oneshot
|
||||||
|
RuntimeDirectory=taler-exchange-private
|
||||||
|
User=root
|
||||||
|
Group=taler-exchange-private
|
||||||
|
ExecStart=/bin/true
|
||||||
|
RemainAfterExit=yes
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
@ -1,5 +1,6 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=GNU Taler payment system exchange EdDSA security module
|
Description=GNU Taler payment system exchange EdDSA security module
|
||||||
|
Requires=taler-exchange-rundir.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
User=taler-exchange-secmod-eddsa
|
User=taler-exchange-secmod-eddsa
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=GNU Taler payment system exchange RSA security module
|
Description=GNU Taler payment system exchange RSA security module
|
||||||
|
Requires=taler-exchange-rundir.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
User=taler-exchange-secmod-rsa
|
User=taler-exchange-secmod-rsa
|
||||||
|
Loading…
Reference in New Issue
Block a user