[Unit]
Description=Jitsi Gateway to SIP
After=network.target

[Service]
Type=simple
SuccessExitStatus=143
EnvironmentFile={{ jitsi_root_dir }}/etc/jigasi/jigasi.conf
User={{ jitsi_user }}
Group={{ jitsi_user }}
PrivateTmp=true
PrivateDevices=true
ProtectHome=true
ProtectSystem=full
Restart=on-failure
StartLimitInterval=0
RestartSec=30
Environment=JAVA_HOME=/usr/lib/jvm/java-17
Environment=PATH=/usr/lib/jvm/java-17/bin:/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
ExecStart=/opt/jitsi/jigasi/jigasi.sh \
            --configdir={{ jitsi_root_dir }}/etc \
            --configdirname=jigasi \
            --nocomponent=true \
            ${JIGASI_OPT}
SyslogIdentifier=jigasi

[Install]
WantedBy=multi-user.target
