-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Receptor and Emitter Autostart after boot #81
Comments
So you should have for your first line something like this: /path/to/vban_emitter -i 192.168.125.31 -p 6980 -s RX >/dev/null & |
Hey Tilleul, Thanks for ur reply. My commands in /etc/rc.local look like this now..... (sleep 10 But it doesn't work. Even without "(sleep 10" and ")" it doesn't wanna run. Any help appreciated. :) Best regards |
you should check your logs for error messages ... maybe the network is not ready ? Also your second line also needs a final "&" to make it run in the background (but it won't solve your current problem) |
Hello Tilleul, thanks again for ur quick reply. Thanks for the hint with the "&". I think my network should be ready after 10 seconds but I'm not sure. Don't know how to enter the log files. First I tried the same stuff (using an amateur radio device by network) with mumble which was starting up and working after a delay of 10 seconds. But since I haven't had a possibility to control the audio levels (it was not possible to disable AGC) I now use VBAN which works just the way I want. Just the autostart doesn't work. Best regards |
Depending on your linux distro, check journalctl or probably the logs are in /var/log (lots of files in there) |
Good morning, didn't know the linux distribution makes a difference. I got Raspberry PI OS running. I'll try to check the logs and let u know. :) Best regards Manuel |
Raspberry PI OS uses systemd as init-daemon (the first process, that starts all the other processes). I recommend to try to create a systemd-service for the startup-commands vban-emitter and receptor (I suggest one service per command) https://www.raspberrypi.com/documentation/computers/using_linux.html#creating-a-service One nice thing (among many others) about systemd services is, that you can explicitly state, that the service starts after the network is up ( edit: because it's not mentioned in the linked documentation: you can check the status (running and log output) with |
Hello again, /etc/systemd/system/vban-emitter-start.service Content of the file:
(There's also a file for receptor looking almost the same except of the 2 lines which are "Description=VBA-EMITTER-START" and "ExecStart=/usr/local/bin/vban_receptor -i 192.168.125.20 -p 6980 -s TV >/dev/null &" but I wanna keep it simple right now.) Ok.... I saves the file(s)....
I tried to reboot the raspberry, I tried to enter different users (su, pi) un the "user"-line but that didn't help either. Saludos |
try to drop the redirection part |
Hello, I dropped it... but then I keep gettin' the same error I think..... ● vban-emitter-start.service - VBAN-EMITTER-START Mär 23 20:22:30 YAESU-FT-DX10 systemd[1]: vban-emitter-start.service: Scheduled restart job, restart counter is at 5. Saludos Manuel |
maybe the script starts too early. Does it work if you start the service by hand when you're having network connectivity? If that is working, then try to depend on the https://www.freedesktop.org/software/systemd/man/systemd-networkd-wait-online.service.html |
Hey NeroBurner, thanks for u r reply. It frankly doesn't. At the moment I still always try to start the service by hand... If that would work I would implement it to start automatically. But right now I just get this error message. |
maybe the system unit doesn't have the environment variables set to connect to the pulseaudio server. Maybe try to look into that |
Well, how about your sound system? Either require |
@DL1DMS Apologies for posting years later, but I stumbled across this issue and was able to recreate your error message. This comment is mostly for anyone else coming here with a similar issue & desire to setup VBAN as a service. It was due to an underlying ALSA error that was being masked by your On my machine is was erroring running as a service because it couldn't/wouldn't use the default audio device when running as a service, but when I ran it myself it would work. The trick here is to determine the audio device I've added a Wiki page that hopefully helps someone else: https://github.com/quiniouben/vban/wiki/Quick-Start-Guide-%E2%80%90-VBAN-as-a-service-(Linux) |
Hello,
I use vban for Amateur radio purposes.... How it is possible to "autostart" vban_emitter and vban_receptor at boot? It works fine by entering the commands by shell but I doesn't run by adding the following lines to the /etc/rc.local
vban_emitter -i 192.168.125.31 -p 6980 -s RX
vban_emitter -i 192.168.125.20 -p 6980 -s RX
vban_receptor -i 192.168.125.31 -p 6980 -s TX
vban_receptor -i 192.168.125.20 -p 6980 -s TX
Probably it's a stupid question but I'm still a greenhorn when it comes to Linux......
Best regards
Manuel
The text was updated successfully, but these errors were encountered: