summarylogtreecommitdiffstats
path: root/garnet-server.service
blob: 08d4931b308ba0d0552bc32453979df9e3e42359 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
[Unit]
Description=A high-performance cache-store from Microsoft Research
Documentation=https://microsoft.github.io/garnet/docs
After=network-online.target
Wants=network-online.target

[Service]
Type=simple
DynamicUser=yes
Restart=on-failure
RestartSec=5
ExecStart=/usr/bin/GarnetServer --config-import-path /etc/garnet/garnet-server.conf
ConfigurationDirectory=garnet
WorkingDirectory=/usr/lib/garnet
RuntimeDirectory=garnet-server
StateDirectory=garnet-server
LogsDirectory=garnet-server

NoNewPrivileges=yes
PrivateDevices=yes
ProtectHome=yes
LockPersonality=yes
ProtectProc=invisible
ProtectControlGroups=yes
ProtectHostname=yes
ProtectKernelLogs=yes
ProtectKernelModules=yes
ProtectKernelTunables=yes
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
RestrictNamespaces=yes
RestrictSUIDSGID=yes

[Install]
WantedBy=multi-user.target