summarylogtreecommitdiffstats
path: root/red-discordbot@.service
blob: f3f586c22f09a51a319a1f9f7e4b8019d6de3d11 (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
35
36
37
38
39
40
[Unit]
Description=Red-DiscordBot instance %I

[Service]
User=redbot
Group=redbot

StateDirectory=Red-DiscordBot/%i
ConfigurationDirectory=Red-DiscordBot

ProtectSystem=strict
ProtectHome=true
PrivateDevices=true
PrivateUsers=true
PrivateMounts=true
PrivateTmp=true
NoNewPrivileges=true
ProtectClock=true
ProtectControlGroups=true
ProtectKernelLogs=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectProc=invisible
ProcSubset=pid
RestrictRealtime=true
RestrictAddressFamilies=AF_INET AF_INET6
RestrictNamespaces=true
RestrictSUIDSGID=true
LockPersonality=true
MemoryDenyWriteExecute=true
RemoveIPC=true
ProtectHostname=true
CapabilityBoundingSet=
SystemCallFilter=@system-service
SystemCallFilter=~@privileged @resources

ExecStart=/usr/bin/redbot %i

[Install]
WantedBy=multi-user.target