update snippets for daily_plot

This commit is contained in:
frederik
2024-01-02 14:18:40 +01:00
parent 9b9498346a
commit d4055b63b9
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -312,7 +312,7 @@ Restart=always
RestartSec=120
Type=simple
User=$USER
ExecStart=$PYTHON_VIRTUAL_ENV /usr/local/bin/daily_plot.py
ExecStart=$PYTHON_VIRTUAL_ENV /usr/local/bin/daily_plot.py --daemon --sleep 2
[Install]
WantedBy=multi-user.target
EOF
+4 -1
View File
@@ -55,7 +55,10 @@ ensure_python_package() {
}
# update snippets below
if ! grep 'daemon' $HOME/BirdNET-Pi/templates/chart_viewer.service &>/dev/null;then
sed -i "s|daily_plot.py.*|daily_plot.py --daemon --sleep 2|" ~/BirdNET-Pi/templates/chart_viewer.service
systemctl daemon-reload && restart_services.sh
fi
# update snippets above
systemctl daemon-reload