[Unit]
Description=Jitsi Conference Focus
After=network.target

[Service]
Type=simple
SuccessExitStatus=143
User={{ jitsi_user }}
Group={{ jitsi_user }}
PrivateTmp=true
PrivateDevices=true
ProtectHome=true
ProtectSystem=full
ReadOnlyDirectories={{ jitsi_root_dir }}/etc {{ jitsi_root_dir }}/jicofo
Restart=on-failure
StartLimitInterval=0
RestartSec=30
Environment=JAVA_SYS_PROPS=-Dconfig.file={{ jitsi_root_dir }}/etc/jicofo/jicofo.conf
ExecStart=/opt/jitsi/jicofo/jicofo.sh \
            ${JICOFO_OPT}
SyslogIdentifier=jicofo

[Install]
WantedBy=multi-user.target
