Open codexual opened 2 years ago
have you tried using the executable? rather then using the source?
Hey, setup: Raspberry Pi 3 B+ build: cargo build NOALBS
what i have tried without success
I also tried with crone tab and rc.local. With the CLI it starts without problems, but as a crone tab NOALBS starts but it finds no .env and no config.
I created a service
[Unit]
Description=Examplesystemd service.
[Service]
Type=simple
ExecStart=/home/pi/nginx-obs-automatic-low-bitrate-switching/noalbs
[Install]
WantedBy=multi-user.target
Start service
systemctl start albs.service
after starting get errors. no .env and no config
all is in the same folder
@TaRs-one you also have to change the WorkingDirectory.
[Unit]
Description=NOALBS service
After=network.target
[Service]
Restart=always
User=root
Group=root
WorkingDirectory=/home/pi/nginx-obs-automatic-low-bitrate-switching
ExecStart=/home/pi/nginx-obs-automatic-low-bitrate-switching/noalbs
SyslogIdentifier=NOALBS
[Install]
WantedBy=multi-user.target
Before updating to NOALBS v2.5.2 I was using the older (NPM) version. And the way I start up on boot what using "PM2" which starts up any app.js file. However you can't use this in the latest update (RUST lang) - I am using Ubuntu Server 20.04.3 on Raspi 4 (not sure if I am using 4GB or 8GB) just fyi.
So I created a simple "autostart.sh" script
Using !#/bin/bash with and without on 1st line. When I run the script from the terminal works flawlessly
./autostart.sh
But when creating a "crontab -e"
@reboot sh /root/autostart.sh
Nothing happens upon rebootMy other failed solution is creating a systemd service File name -
/etc/systemd/system/autostart.service
Also should mention it has writable permissions 0777 on the autostart.sh, and the entire folder of NOALBS.
Next command
systemctl enable autostart
then to officially run itservice autostart start
Nothing happens, check the logs
service autostart status
I was thinking maybe because "autostart.sh" wasn't in NOALBS folder, moved it, modified the "systemd service" with the updated path and the autostart.sh and remove "cd /root/NOALBS". Same error. So if anyone knows how to help me or have a different solution for NOALBS to start up on boot, that would be lit. Sorry for my inexperience-ness! :|