summarylogtreecommitdiffstats
path: root/service
blob: 33796d4521bf8e823fb0d2e528b9078fc9b1051e (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-nightly/config
User=jvb
ExecStart=/usr/lib/jitsi-videobridge-nightly/jvb.sh ${JVB_OPTS}
WorkingDirectory=/var/lib/jitsi-videobridge-nightly
StateDirectory=jitsi-videobridge-nightly
StateDirectoryMode=0750
LogsDirectory=jitsi-videobridge-nightly
LogsDirectoryMode=0750
ConfigurationDirectory=jitsi-videobridge-nightly
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