| 1 | [Unit] |
| 2 | Description=DATUM Gateway |
| 3 | Documentation=man:datum_gateway |
| 4 | After=network-online.target remote-fs.target nss-lookup.target |
| 5 | Wants=network-online.target |
| 6 | [Service] |
| 7 | User=bitcoin |
| 8 | ExecStart=/usr/bin/datum_gateway -c /etc/datum-gateway/datum_gateway_config.json |
| 9 | Restart=on-failure |
| 10 | TimeoutSec=600 |
| 11 | RestartSec=30 |
| 12 | LimitNOFILE=65535 |
| 13 | CapabilityBoundingSet=CAP_NET_BIND_SERVICE CAP_NET_BROADCAST CAP_NET_RAW |
| 14 | NoNewPrivileges=yes |
| 15 | RemoveIPC=yes |
| 16 | PrivateDevices=yes |
| 17 | ProtectClock=yes |
| 18 | ProtectKernelLogs=yes |
| 19 | ProtectControlGroups=yes |
| 20 | ProtectKernelModules=yes |
| 21 | PrivateMounts=yes |
| 22 | SystemCallArchitectures=native |
| 23 | MemoryDenyWriteExecute=yes |
| 24 | RestrictNamespaces=net pid |
| 25 | ProtectHostname=yes |
| 26 | LockPersonality=yes |
| 27 | ProtectKernelTunables=yes |
| 28 | RestrictRealtime=yes |
| 29 | ProtectSystem=full |
| 30 | ProtectProc=invisible |
| 31 | ProcSubset=pid |
| 32 | ProtectHome=tmpfs |
| 33 | PrivateTmp=yes |
| 34 | PrivateUsers=yes |
| 35 | SystemCallFilter=~@clock @cpu-emulation @debug @module @mount @obsolete @privileged @raw-io @reboot @swap |
| 36 | [Install] |
| 37 | WantedBy=multi-user.target |