-
-
Notifications
You must be signed in to change notification settings - Fork 197
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
Startup trunk-recorder and radio-scanner on RPI boot #946
Comments
While I have not dug into the pipe transitions here, just based on the process order of operations, you might need to background the processes if the desire isn't to hold them open from this script. |
The problem is both scripts need to run at the same time. This configuration only fires the trunk-recorder and not the Rdio-scanner until after the trunk-recorder is killed |
tmux appears to be a way around this but I'm not sure how to script that? |
If you're asking about a headless system on an RPI, I'm assuming it's running systemd. Have you set these up to not run behind systemd? How have you set these up to run initially? Edit: Without digging into the system structure it self, you could probably slap a Example:
|
Thanks this will work - I actually just got it working with tmux installed and scripted the tmux to startup with 2 sessions. On Apr 11, 2024, at 06:52, penguinzephyr ***@***.***> wrote:
Is there a reason you arent using the example systemd service?
https://github.com/robotastic/trunk-recorder/blob/70698818065b24a494fc5488c82445609eab9ebc/examples/SETUP_SERVICE.md
You could modify this example to start rdio-scanner as a separate service too.
I personally prefer supervisor and it keeps both tr and rdio up for me happily. Example configuration.
/etc/supervisor/conf.d/trunk-recorder.conf
[program:trunk-recorder] user=ubuntu redirect_stderr=true stdout_logfile=/home/ubuntu/logs/trunk-recorder-supervisor.log stdout_logfile_maxbytes=32MB stdout_logfile_backups=10 directory=/home/ubuntu/ command=/bin/bash -c "/usr/local/bin/trunk-recorder -c /home/ubuntu/config.json" numprocs=1
/etc/supervisor/conf.d/rdio.conf
[program:rdio] user=ubuntu redirect_stderr=true stdout_logfile=/home/ubuntu/logs/rdio.log stdout_logfile_maxbytes=32MB stdout_logfile_backups=10 directory=/home/ubuntu/ command=/home/ubuntu/rdio-scanner numprocs=1
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
If it helps, just set Rdio-Scanner as a service. That way, Rdio-Scanner will always start on reboot and your can set up a
-or- |
trying to setup a @reboot script to start trunk-recorder in one tty session and also start radio-scanner in another tty session since both need to run simultaneously. here is the script I have but seems both try to run in the initial tty window and the rdio-scanner will only run after the trunk-recorder is killed.
The text was updated successfully, but these errors were encountered: