I've tried to follow the steps in this thread but I can't get my OP25 to autostart on boot.
When I try to start the system manually, I'm prompted to authenticate (not sure if this is good or bad)
scanner@op25pi:~/op25/op25/gr-op25_repeater/apps $ systemctl start op25-rx
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ====
Authentication is required to start 'op25-rx.service'.
Authenticating as: ,,, (scanner)
Password:
==== AUTHENTICATION COMPLETE ====
When I run this command: journalctl -xe
It shows this error:
scanner@op25pi:~/op25/op25/gr-op25_repeater/apps $ journalctl -xe
Mar 29 14:49:59 op25pi systemd[1]: Stopped op25-rx.service - op25-rx.
░░ Subject: A stop job for unit op25-rx.service has finished
░░ Defined-By: systemd
░░ Support: Debian -- User Support
░░
░░ A stop job for unit op25-rx.service has finished.
░░
░░ The job identifier is 10105 and the job result is done.
Mar 29 14:49:59 op25pi systemd[1]: Started op25-rx.service - op25-rx.
░░ Subject: A start job for unit op25-rx.service has finished successfully
░░ Defined-By: systemd
░░ Support: Debian -- User Support
░░
░░ A start job for unit op25-rx.service has finished successfully.
░░
░░ The job identifier is 10105.
Mar 29 14:49:59 op25pi (bash)[1069]: op25-rx.service: Changing to the requested working directory failed: No such file or directory
Mar 29 14:49:59 op25pi (bash)[1069]: op25-rx.service: Failed at step CHDIR spawning /bin/bash: No such file or directory
░░ Subject: Process /bin/bash could not be executed
Here are my config files:
op25-rx.service
Description=op25-rx
After=syslog.target network.target nss-lookup.target network-online.target
Requires=network-online.target
[Service]
User=1000
Group=1000
WorkingDirectory=/home/scanner/op25/op25/gr-op25_repeater/apps/
ExecStart=/bin/bash -- op25.sh
RestartSec=5
Restart=on-failure
[Install]
WantedBy=multi-user.target
op25.sh
sleep 5
cd /home/pi/op25/op25/gr-op25_repeater/apps
./rx.py --args 'rtl' -N 'LNA:47' -S 1000000 -x 2 -T CLMRN.tsv -V -2 -U -l http:0.0.0.0:8080
It took my awhile to get OP25 working but it works great. Last step is to get it to run on boot.
Thanks in advance
-Rob
When I try to start the system manually, I'm prompted to authenticate (not sure if this is good or bad)
scanner@op25pi:~/op25/op25/gr-op25_repeater/apps $ systemctl start op25-rx
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ====
Authentication is required to start 'op25-rx.service'.
Authenticating as: ,,, (scanner)
Password:
==== AUTHENTICATION COMPLETE ====
When I run this command: journalctl -xe
It shows this error:
scanner@op25pi:~/op25/op25/gr-op25_repeater/apps $ journalctl -xe
Mar 29 14:49:59 op25pi systemd[1]: Stopped op25-rx.service - op25-rx.
░░ Subject: A stop job for unit op25-rx.service has finished
░░ Defined-By: systemd
░░ Support: Debian -- User Support
░░
░░ A stop job for unit op25-rx.service has finished.
░░
░░ The job identifier is 10105 and the job result is done.
Mar 29 14:49:59 op25pi systemd[1]: Started op25-rx.service - op25-rx.
░░ Subject: A start job for unit op25-rx.service has finished successfully
░░ Defined-By: systemd
░░ Support: Debian -- User Support
░░
░░ A start job for unit op25-rx.service has finished successfully.
░░
░░ The job identifier is 10105.
Mar 29 14:49:59 op25pi (bash)[1069]: op25-rx.service: Changing to the requested working directory failed: No such file or directory
Mar 29 14:49:59 op25pi (bash)[1069]: op25-rx.service: Failed at step CHDIR spawning /bin/bash: No such file or directory
░░ Subject: Process /bin/bash could not be executed
Here are my config files:
op25-rx.service
Description=op25-rx
After=syslog.target network.target nss-lookup.target network-online.target
Requires=network-online.target
[Service]
User=1000
Group=1000
WorkingDirectory=/home/scanner/op25/op25/gr-op25_repeater/apps/
ExecStart=/bin/bash -- op25.sh
RestartSec=5
Restart=on-failure
[Install]
WantedBy=multi-user.target
op25.sh
sleep 5
cd /home/pi/op25/op25/gr-op25_repeater/apps
./rx.py --args 'rtl' -N 'LNA:47' -S 1000000 -x 2 -T CLMRN.tsv -V -2 -U -l http:0.0.0.0:8080
It took my awhile to get OP25 working but it works great. Last step is to get it to run on boot.
Thanks in advance
-Rob
