summarylogtreecommitdiffstats
path: root/service
blob: eb8860fc0b5d007f2034babc91f68d0d01abe753 (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
[Unit]
Description=Jitsi-Meet Conference Focus
After=network-online.target

[Service]
Environment=PATH=/usr/lib/jvm/java-11-openjdk/bin:/bin:/usr/bin:/usr/local/bin
EnvironmentFile=/etc/jicofo-git/config
User=jicofo
ExecStart=/usr/lib/jicofo-git/jicofo.sh --host=${JICOFO_HOST} --domain=${JICOFO_HOSTNAME} --user_name=${JICOFO_AUTH_USER} --user_domain=${JICOFO_AUTH_DOMAIN} ${JICOFO_OPTS}
WorkingDirectory=/var/lib/jicofo-git
StateDirectory=jicofo-git
StateDirectoryMode=0750
LogsDirectory=jicofo-git
LogsDirectoryMode=0750
ConfigurationDirectory=jicofo-git
ConfigurationDirectoryMode=0700

Restart=on-failure
SuccessExitStatus=143

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

[Install]
WantedBy=multi-user.target