blob: b8de425194efea05bf2db237b4b1772f6a358c36 (
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-git/config
User=jvb
ExecStart=/usr/lib/jitsi-videobridge-git/jvb.sh ${JVB_OPTS}
WorkingDirectory=/var/lib/jitsi-videobridge-git
StateDirectory=jitsi-videobridge-git
StateDirectoryMode=0750
LogsDirectory=jitsi-videobridge-git
LogsDirectoryMode=0750
ConfigurationDirectory=jitsi-videobridge-git
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
|