sync

Backup service to store encrypted wallet databases (experimental)
Log | Files | Refs | Submodules | README | LICENSE

sync-httpd.service (717B)


      1 [Unit]
      2 Description=Sync backup backend
      3 After=postgresql.service network.target
      4 Requires=sync-httpd.socket
      5 
      6 [Service]
      7 User=sync-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 RuntimeMaxSec=3600s
     22 ExecStart=/usr/bin/sync-httpd -c /etc/sync/sync.conf -L INFO
     23 
     24 StandardOutput=journal
     25 StandardError=journal
     26 PrivateTmp=yes
     27 PrivateDevices=yes
     28 ProtectSystem=full
     29 
     30 [Install]
     31 WantedBy=multi-user.target