Update install_services.sh

This commit is contained in:
Patrick McGuire
2022-01-26 08:29:02 -05:00
committed by GitHub
parent d35e636e3d
commit 091d133e03
+5 -5
View File
@@ -384,21 +384,21 @@ ExecStart=/usr/local/bin/gotty -p 8080 --title-format "BirdNET-Pi Log" journalct
WantedBy=multi-user.target WantedBy=multi-user.target
EOF EOF
systemctl enable birdnet_log.service systemctl enable birdnet_log.service
echo "Installing the extraction_log.service" echo "Installing the web_terminal.service"
cat << EOF > /etc/systemd/system/extraction_log.service cat << EOF > /etc/systemd/system/web_terminal.service
[Unit] [Unit]
Description=BirdNET Extraction Log Description=BirdNET-Pi Web Terminal
[Service] [Service]
Restart=on-failure Restart=on-failure
RestartSec=3 RestartSec=3
Type=simple Type=simple
User=${USER} User=${USER}
Environment=TERM=xterm-256color Environment=TERM=xterm-256color
ExecStart=/usr/local/bin/gotty -p 8888 --title-format "Extractions Log" journalctl -o cat -fu extraction.service ExecStart=/usr/local/bin/gotty -w -p 8888 --title-format "BirdNET-Pi Terminal" bash
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target
EOF EOF
systemctl enable extraction_log.service systemctl enable web_terminal.service
} }
install_sox() { install_sox() {