summarylogtreecommitdiffstats
path: root/sliding-sync-git.service
blob: d363a9296d55930b8cbc84de1ba3962d68e928a7 (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
[Unit]
After=network-online.target

[Service]
Type=simple
DynamicUser=yes
RuntimeDirectory=sliding-sync
EnvironmentFile=/etc/default/sliding-sync
Restart=always
RestartSec=3
ExecStart=/usr/bin/syncv3

SyslogIdentifier=sliding-sync

NoNewPrivileges=true
ProtectKernelTunables=true
ProtectKernelLogs=true
ProtectControlGroups=true
MemoryDenyWriteExecute=true
ProtectClock=true
RestrictRealtime=true
PrivateDevices=true
PrivateTmp=true
ProtectHostname=true

OOMPolicy=stop
OOMScoreAdjust=20

[Install]
WantedBy=multi-user.target