|
|
@ -171,7 +171,6 @@ msg_ok "Installed Coral Object Detection Model"
|
|
|
|
|
|
|
|
|
|
|
|
msg_info "Building Nginx with Custom Modules"
|
|
|
|
msg_info "Building Nginx with Custom Modules"
|
|
|
|
$STD /opt/frigate/docker/main/build_nginx.sh
|
|
|
|
$STD /opt/frigate/docker/main/build_nginx.sh
|
|
|
|
#sed -i 's/exec nginx/exec \/usr\/local\/nginx\/sbin\/nginx/g' /opt/frigate/docker/main/rootfs/etc/s6-overlay/s6-rc.d/nginx/run
|
|
|
|
|
|
|
|
sed -e '/s6-notifyoncheck/ s/^#*/#/' -i /opt/frigate/docker/main/rootfs/etc/s6-overlay/s6-rc.d/nginx/run
|
|
|
|
sed -e '/s6-notifyoncheck/ s/^#*/#/' -i /opt/frigate/docker/main/rootfs/etc/s6-overlay/s6-rc.d/nginx/run
|
|
|
|
sed -i 's/error_log \/dev\/stdout warn\;/error_log \/dev\/shm\/logs\/nginx\/current warn\;/' /usr/local/nginx/conf/nginx.conf
|
|
|
|
sed -i 's/error_log \/dev\/stdout warn\;/error_log \/dev\/shm\/logs\/nginx\/current warn\;/' /usr/local/nginx/conf/nginx.conf
|
|
|
|
sed -i 's/access_log \/dev\/stdout main\;/access_log \/dev\/shm\/logs\/nginx\/current main\;/' /usr/local/nginx/conf/nginx.conf
|
|
|
|
sed -i 's/access_log \/dev\/stdout main\;/access_log \/dev\/shm\/logs\/nginx\/current main\;/' /usr/local/nginx/conf/nginx.conf
|
|
|
@ -212,7 +211,6 @@ RestartSec=1
|
|
|
|
User=root
|
|
|
|
User=root
|
|
|
|
ExecStartPre=+rm /dev/shm/logs/go2rtc/current
|
|
|
|
ExecStartPre=+rm /dev/shm/logs/go2rtc/current
|
|
|
|
ExecStart=bash /opt/frigate/docker/main/rootfs/etc/s6-overlay/s6-rc.d/go2rtc/run
|
|
|
|
ExecStart=bash /opt/frigate/docker/main/rootfs/etc/s6-overlay/s6-rc.d/go2rtc/run
|
|
|
|
#ExecStart=/bin/bash -c "bash /opt/frigate/docker/main/rootfs/etc/s6-overlay/s6-rc.d/go2rtc/run 2> >(/usr/bin/ts '%%Y-%%m-%%d %%H:%%M:%%.S ' >&2) | /usr/bin/ts '%%Y-%%m-%%d %%H:%%M:%%.S '"
|
|
|
|
|
|
|
|
StandardOutput=file:/dev/shm/logs/go2rtc/current
|
|
|
|
StandardOutput=file:/dev/shm/logs/go2rtc/current
|
|
|
|
StandardError=file:/dev/shm/logs/go2rtc/current
|
|
|
|
StandardError=file:/dev/shm/logs/go2rtc/current
|
|
|
|
|
|
|
|
|
|
|
@ -235,7 +233,6 @@ RestartSec=1
|
|
|
|
User=root
|
|
|
|
User=root
|
|
|
|
ExecStartPre=+rm /dev/shm/logs/frigate/current
|
|
|
|
ExecStartPre=+rm /dev/shm/logs/frigate/current
|
|
|
|
ExecStart=bash /opt/frigate/docker/main/rootfs/etc/s6-overlay/s6-rc.d/frigate/run
|
|
|
|
ExecStart=bash /opt/frigate/docker/main/rootfs/etc/s6-overlay/s6-rc.d/frigate/run
|
|
|
|
#ExecStart=/bin/bash -c "bash /opt/frigate/docker/main/rootfs/etc/s6-overlay/s6-rc.d/frigate/run 2> >(/usr/bin/ts '%%Y-%%m-%%d %%H:%%M:%%.S ' >&2) | /usr/bin/ts '%%Y-%%m-%%d %%H:%%M:%%.S '"
|
|
|
|
|
|
|
|
StandardOutput=file:/dev/shm/logs/frigate/current
|
|
|
|
StandardOutput=file:/dev/shm/logs/frigate/current
|
|
|
|
StandardError=file:/dev/shm/logs/frigate/current
|
|
|
|
StandardError=file:/dev/shm/logs/frigate/current
|
|
|
|
|
|
|
|
|
|
|
@ -257,8 +254,7 @@ Restart=always
|
|
|
|
RestartSec=1
|
|
|
|
RestartSec=1
|
|
|
|
User=root
|
|
|
|
User=root
|
|
|
|
ExecStartPre=+rm /dev/shm/logs/nginx/current
|
|
|
|
ExecStartPre=+rm /dev/shm/logs/nginx/current
|
|
|
|
#ExecStart=bash /opt/frigate/docker/main/rootfs/etc/s6-overlay/s6-rc.d/nginx/run
|
|
|
|
ExecStart=bash /opt/frigate/docker/main/rootfs/etc/s6-overlay/s6-rc.d/nginx/run
|
|
|
|
ExecStart=/bin/bash -c "bash /opt/frigate/docker/main/rootfs/etc/s6-overlay/s6-rc.d/nginx/run 2> >(/usr/bin/ts '%%Y-%%m-%%d %%H:%%M:%%.S ' >&2) | /usr/bin/ts '%%Y-%%m-%%d %%H:%%M:%%.S '"
|
|
|
|
|
|
|
|
StandardOutput=file:/dev/shm/logs/nginx/current
|
|
|
|
StandardOutput=file:/dev/shm/logs/nginx/current
|
|
|
|
StandardError=file:/dev/shm/logs/nginx/current
|
|
|
|
StandardError=file:/dev/shm/logs/nginx/current
|
|
|
|
|
|
|
|
|
|
|
|