mirror of https://github.com/tteck/Proxmox.git
Compare commits
No commits in common. "6dcc29afa7b5697741bd1fc8d3bf404730eef43a" and "3233fbf5f592adcd7fa898e2df7478642de961f5" have entirely different histories.
6dcc29afa7
...
3233fbf5f5
|
@ -84,7 +84,6 @@ model:
|
||||||
cameras:
|
cameras:
|
||||||
test:
|
test:
|
||||||
ffmpeg:
|
ffmpeg:
|
||||||
#hwaccel_args: preset-vaapi
|
|
||||||
inputs:
|
inputs:
|
||||||
- path: /media/frigate/person-bicycle-car-detection.mp4
|
- path: /media/frigate/person-bicycle-car-detection.mp4
|
||||||
input_args: -re -stream_loop -1 -fflags +genpts
|
input_args: -re -stream_loop -1 -fflags +genpts
|
||||||
|
@ -97,6 +96,9 @@ cameras:
|
||||||
fps: 5
|
fps: 5
|
||||||
EOF
|
EOF
|
||||||
ln -sf /config/config.yml /opt/frigate/config/config.yml
|
ln -sf /config/config.yml /opt/frigate/config/config.yml
|
||||||
|
mkdir -p /dev/shm/logs/{frigate,go2rtc,nginx}
|
||||||
|
touch /dev/shm/logs/{frigate/current,go2rtc/current,nginx/current}
|
||||||
|
chmod -R 777 /dev/shm
|
||||||
sed -i -e 's/^kvm:x:104:$/render:x:104:root,frigate/' -e 's/^render:x:105:root$/kvm:x:105:/' /etc/group
|
sed -i -e 's/^kvm:x:104:$/render:x:104:root,frigate/' -e 's/^render:x:105:root$/kvm:x:105:/' /etc/group
|
||||||
msg_ok "Installed Frigate $RELEASE"
|
msg_ok "Installed Frigate $RELEASE"
|
||||||
|
|
||||||
|
@ -142,24 +144,10 @@ sed -i 's/access_log \/dev\/stdout main\;/access_log nginx\.log main\;/' /usr/lo
|
||||||
msg_ok "Built Nginx"
|
msg_ok "Built Nginx"
|
||||||
|
|
||||||
msg_info "Creating Services"
|
msg_info "Creating Services"
|
||||||
cat <<EOF >/etc/systemd/system/create_directories.service
|
|
||||||
[Unit]
|
|
||||||
Description=Create necessary directories for logs
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=oneshot
|
|
||||||
ExecStart=/bin/bash -c '/bin/mkdir -p /dev/shm/logs/{frigate,go2rtc,nginx} && /bin/touch /dev/shm/logs/{frigate/current,go2rtc/current,nginx/current} && /bin/chmod -R 777 /dev/shm/logs'
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
EOF
|
|
||||||
systemctl enable -q --now create_directories
|
|
||||||
sleep 3
|
|
||||||
cat <<EOF >/etc/systemd/system/go2rtc.service
|
cat <<EOF >/etc/systemd/system/go2rtc.service
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=go2rtc service
|
Description=go2rtc service
|
||||||
After=network.target
|
After=network.target
|
||||||
After=create_directories.service
|
|
||||||
StartLimitIntervalSec=0
|
StartLimitIntervalSec=0
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
@ -168,8 +156,6 @@ Restart=always
|
||||||
RestartSec=1
|
RestartSec=1
|
||||||
User=root
|
User=root
|
||||||
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
|
||||||
StandardOutput=file:/dev/shm/logs/go2rtc/current
|
|
||||||
StandardError=file:/dev/shm/logs/go2rtc/current
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
@ -180,7 +166,6 @@ cat <<EOF >/etc/systemd/system/frigate.service
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Frigate service
|
Description=Frigate service
|
||||||
After=go2rtc.service
|
After=go2rtc.service
|
||||||
After=create_directories.service
|
|
||||||
StartLimitIntervalSec=0
|
StartLimitIntervalSec=0
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
@ -189,8 +174,6 @@ Restart=always
|
||||||
RestartSec=1
|
RestartSec=1
|
||||||
User=root
|
User=root
|
||||||
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
|
||||||
StandardOutput=file:/dev/shm/logs/frigate/current
|
|
||||||
StandardError=file:/dev/shm/logs/frigate/current
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
@ -201,7 +184,6 @@ cat <<EOF >/etc/systemd/system/nginx.service
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Nginx service
|
Description=Nginx service
|
||||||
After=frigate.service
|
After=frigate.service
|
||||||
After=create_directories.service
|
|
||||||
StartLimitIntervalSec=0
|
StartLimitIntervalSec=0
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
@ -210,8 +192,6 @@ Restart=always
|
||||||
RestartSec=1
|
RestartSec=1
|
||||||
User=root
|
User=root
|
||||||
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
|
||||||
StandardOutput=file:/dev/shm/logs/nginx/current
|
|
||||||
StandardError=file:/dev/shm/logs/nginx/current
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
Reference in New Issue