2019-06-06 06:04:22 +02:00
|
|
|
[Unit]
|
2020-04-15 08:50:39 +02:00
|
|
|
Description=__APP__ Videobridge
|
2019-06-06 06:04:22 +02:00
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
2020-04-11 21:55:05 +02:00
|
|
|
SuccessExitStatus=143
|
|
|
|
# allow bind to 80 and 443
|
|
|
|
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
|
|
|
EnvironmentFile=/etc/__APP__/videobridge/config
|
2020-04-15 08:50:39 +02:00
|
|
|
Environment=LOGFILE=/var/log/__APP__/jitsi-videobridge.log
|
|
|
|
User=__APP__
|
2020-04-11 21:55:05 +02:00
|
|
|
RuntimeDirectory=jitsi-videobridge
|
|
|
|
RuntimeDirectoryMode=0750
|
|
|
|
PIDFile=/var/run/jitsi-videobridge/jitsi-videobridge.pid
|
|
|
|
# more threads for this process
|
|
|
|
TasksMax=65000
|
|
|
|
# allow more open files for this process
|
|
|
|
LimitNPROC=65000
|
|
|
|
LimitNOFILE=65000
|
2019-06-06 06:04:22 +02:00
|
|
|
WorkingDirectory=__FINALPATH__/jitsi-videobridge/
|
2020-06-18 16:07:33 +02:00
|
|
|
ExecStart=/bin/bash -c "exec __FINALPATH__/jitsi-videobridge/jvb.sh --host=$${JVB_HOST:-127.0.0.1} --domain=${JVB_HOSTNAME} --port=${JVB_PORT} --secret=${JVB_SECRET} ${JVB_OPTS} < /dev/null >> ${LOGFILE} 2>&1"
|
2020-04-11 21:55:05 +02:00
|
|
|
ExecStartPost=/bin/bash -c "echo $MAINPID > /var/run/jitsi-videobridge/jitsi-videobridge.pid"
|
2019-06-06 06:04:22 +02:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|