2021-12-02 08:02:20 +01:00
|
|
|
% This is a systemd service template.
|
|
|
|
[Unit]
|
|
|
|
Description=GNU Taler payment system exchange REST API at %I
|
|
|
|
AssertPathExists=/run/taler/exchange-httpd
|
|
|
|
Requires=taler-exchange-httpd@%i.socket taler-exchange-secmod-rsa.service taler-exchange-secmod-eddsa.service
|
|
|
|
After=postgres.service network.target taler-exchange-secmod-rsa.service taler-exchange-secmod-eddsa.service
|
|
|
|
PartOf=taler-exchange.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
User=taler-exchange-httpd
|
|
|
|
Type=simple
|
|
|
|
# Depending on the configuration, the service suicides and then
|
|
|
|
# needs to be restarted.
|
|
|
|
Restart=always
|
|
|
|
# Do not dally on restarts.
|
|
|
|
RestartSec=1ms
|
|
|
|
EnvironmentFile=/etc/environment
|
|
|
|
ExecStart=/usr/bin/taler-exchange-httpd -c /etc/taler/taler.conf
|
|
|
|
StandardOutput=journal
|
|
|
|
StandardError=journal
|
|
|
|
PrivateTmp=no
|
|
|
|
PrivateDevices=yes
|
|
|
|
ProtectSystem=full
|
2022-07-17 17:03:14 +02:00
|
|
|
Slice=taler-exchange.slice
|
2021-12-02 08:02:20 +01:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|