1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[Unit]
Description=socialweb-computer gateway (serve gateway kcp)
StartLimitIntervalSec=0
[Service]
Type=exec
Slice=socialweb.slice
WorkingDirectory={{.State}}
Environment=CONFIG_PATH_SOCIALWEB_COMPUTER={{.State}}/config.json
EnvironmentFile=-{{.State}}/gateway.env
ExecStart={{.State}}/bin/current/socialweb-computer serve gateway kcp
Restart=always
RestartSec=5
KillMode=control-group
Delegate=yes
OOMPolicy=continue
LogRateLimitIntervalSec=30s
LogRateLimitBurst=10000
[Install]
WantedBy=default.target