summarylogtreecommitdiffstats
path: root/service
blob: 974bd1df5d7e3957faf83b0842a59c6e53eb12a2 (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=Jitsi-Meet Videobridge
After=network-online.target

[Service]
Environment=PATH=/usr/lib/jvm/java-11-openjdk/bin:/bin:/usr/bin:/usr/local/bin
EnvironmentFile=/etc/jitsi-videobridge/config
User=jvb
ExecStart=/usr/lib/jitsi-videobridge/jvb.sh ${JVB_OPTS}
WorkingDirectory=/var/lib/jitsi-videobridge
StateDirectory=jitsi-videobridge
StateDirectoryMode=0750
LogsDirectory=jitsi-videobridge
LogsDirectoryMode=0750
ConfigurationDirectory=jitsi-videobridge
ConfigurationDirectoryMode=0700

Restart=on-failure
RestartSec=2

SuccessExitStatus=143
RestartPreventExitStatus=78

# more threads for this process
TasksMax=65000
# allow more open files for this process
LimitNPROC=65000
LimitNOFILE=65000

# Hardening
NoNewPrivileges=yes
PrivateTmp=yes
PrivateDevices=yes
ProtectHome=yes
ProtectKernelTunables=yes
ProtectControlGroups=yes
ProtectSystem=strict

[Install]
WantedBy=multi-user.target