taler-rust

GNU Taler code in Rust. Largely core banking integrations.
Log | Files | Refs | Submodules | README | LICENSE

taler-magnet-bank.taler-magnet-bank-httpd.service (1274B)


      1 [Unit]
      2 Description=GNU Taler Magnet Bank adapter REST API
      3 Requires=taler-magnet-bank-httpd.socket
      4 After=network.target postgres.service
      5 PartOf=taler-magnet-bank.target
      6 
      7 [Service]
      8 User=taler-magnet-bank-httpd
      9 Type=simple
     10 
     11 # Depending on the configuration, the service process kills itself and then
     12 # needs to be restarted. Thus no significant delay on restarts.
     13 Restart=always
     14 RestartMode=direct
     15 RestartSec=1ms
     16 RestartPreventExitStatus=9
     17 
     18 # Disable the service if more than 5 restarts are encountered within 5s.
     19 # These are usually the systemd defaults, but can be overwritten, thus we set
     20 # them here explicitly, as the exchange code assumes StartLimitInterval
     21 # to be >=5s.
     22 StartLimitBurst=5
     23 StartLimitInterval=5s
     24 
     25 ExecStart=/usr/bin/taler-magnet-bank serve -c /etc/taler-magnet-bank/taler-magnet-bank.conf
     26 ExecCondition=/usr/bin/taler-magnet-bank serve -c /etc/taler-magnet-bank/taler-magnet-bank.conf --check
     27 
     28 StandardOutput=journal
     29 StandardError=journal
     30 
     31 PrivateTmp=yes
     32 ProtectSystem=full
     33 ProtectHome=yes
     34 ProtectClock=yes
     35 ProtectHostname=yes
     36 ProtectControlGroups=yes
     37 ProtectKernelLogs=yes
     38 ProtectKernelModules=yes
     39 ProtectKernelTunables=yes
     40 ProtectProc=invisible
     41 PrivateDevices=yes
     42 NoNewPrivileges=yes
     43 
     44 Slice=taler-magnet-bank.slice
     45 
     46 [Install]
     47 WantedBy=multi-user.target