anastasis

Credential backup and recovery protocol and service
Log | Files | Refs | Submodules | README | LICENSE

anastasis-httpd.service (798B)


      1 [Unit]
      2 Description=Anastasis key recovery backend
      3 After=postgresql.service network.target
      4 Requires=anastasis-httpd.socket
      5 
      6 [Service]
      7 User=anastasis-httpd
      8 Type=simple
      9 Restart=always
     10 RestartMode=direct
     11 RestartSec=1s
     12 RestartPreventExitStatus=9
     13 
     14 # Disable the service if more than 5 restarts are encountered within 5s.
     15 # These are usually the systemd defaults, but can be overwritten, thus we set
     16 # them here explicitly, as the exchange code assumes StartLimitInterval
     17 # to be >=5s.
     18 StartLimitBurst=5
     19 StartLimitInterval=5s
     20 
     21 ExecStart=/usr/bin/anastasis-httpd -c /etc/anastasis/anastasis.conf -L INFO
     22 EnvironmentFile=/etc/anastasis/anastasis.env
     23 
     24 RuntimeMaxSec=3600s
     25 StandardOutput=journal
     26 StandardError=journal
     27 PrivateTmp=yes
     28 PrivateDevices=yes
     29 ProtectSystem=full
     30 
     31 [Install]
     32 WantedBy=multi-user.target