summarylogtreecommitdiffstats
path: root/ferretdb@.service
blob: 318636ea6c90f0895c3497db4eec26d2901395cd (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
[Unit]
Description=FerretDB Proxy for %I
PartOf=ferretdb.target
Documentation=https://www.ferretdb.com/

[Service]
Type=exec
ExecStart=/usr/bin/ferretdb
EnvironmentFile=-/etc/conf.d/ferretdb
EnvironmentFile=-/etc/conf.d/ferretdb.%i
User=ferretdb
StateDirectory=ferretdb/%i
WorkingDirectory=/var/lib/ferretdb/%i
SystemCallFilter=@system-service
SystemCallErrorNumber=EPERM
NoNewPrivileges=yes
PrivateTmp=yes
PrivateDevices=yes
DevicePolicy=closed
ProtectSystem=strict
ProtectHome=read-only
ProtectControlGroups=yes
ProtectKernelModules=yes
ProtectKernelTunables=yes
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
RestrictNamespaces=yes
RestrictRealtime=yes
RestrictSUIDSGID=yes
MemoryDenyWriteExecute=yes
LockPersonality=yes

[Install]
WantedBy=multi-user.target