unitas-jitsi/net-misc/jicofo-bin/files/jicofo.service

19 lines
676 B
Desktop File

[Unit]
Description=Jitsi conference Focus
After=network.target
[Service]
Restart=always
EnvironmentFile=/etc/jitsi/jicofo/config
Environment=LOGFILE=/var/log/jitsi/jicofo.log
User=jicofo
RuntimeDirectory=jicofo
RuntimeDirectoryMode=0750
PIDFile=/var/run/jicofo/jicofo.pid
WorkingDirectory=/usr/share/jicofo
ExecStart=/bin/bash -c "/usr/share/jicofo/jicofo.sh --host=${JICOFO_HOST} --domain=${JICOFO_HOSTNAME} --port=${JICOFO_PORT} --secret=${JICOFO_SECRET} --user_domain=${JICOFO_AUTH_DOMAIN} --user_password=${JICOFO_AUTH_PASSWORD} < /dev/null >> ${LOGFILE} 2>&1"
ExecStartPost=/bin/bash -c "echo $MAINPID > /var/run/jicofo/jicofo.pid"
[Install]
WantedBy=multi-user.target