[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
ExecStart=/opt/jitsi/jigasi/jigasi.sh \
            --configdir={{ jitsi_root_dir }}/etc \
            --configdirname=jigasi \
            --nocomponent=true \
            ${JIGASI_OPT}
SyslogIdentifier=jigasi

[Install]
WantedBy=multi-user.target
