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

19 lines
688 B
SYSTEMD
Raw Normal View History

2020-04-01 19:19:21 +02:00
[Unit]
Description=Jitsi conference Focus
After=network.target
[Service]
Restart=always
EnvironmentFile=/etc/jitsi/jicofo.%i/config
Environment=LOGFILE=/var/log/jitsi/jicofo-%i.log
User=jicofo
RuntimeDirectory=jicofo
RuntimeDirectoryMode=0750
PIDFile=/var/run/jicofo/jicofo-%i.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-%i.pid"
[Install]
WantedBy=multi-user.target