I am trying to stream from op25 to Icecast as a service. I am using a RTL-SDR fob.
Everything runs fine as services except op25. If I run it interactively it works perfectly.
Does anyone see anything wrong with my config?
My service is op25-rx.service
[Unit]
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/pi/op25/op25/gr-op25_repeater/apps
ExecStart=/bin/bash -- op25.sh
RestartSec=5
Restart=on-failure
[Install]
WantedBy=multi-user.target
My op25.sh is
./rx.py --nocrypt --args 'rtl' --gains 'lna:36' -S 960000 -X -M meta.json -l http:192.168.86.42:8080 -q 0 -v 1 -2 -V -T trunk.tsv -q 0 -w 2>stderr.log
My Trunk.tsv is:
"Sysname" "Control Channel List" "Offset" "NAC" "Modulation" "TGID Tags File" "Whitelist" "Blacklist" "Center Frequency"
"P25 SYSTEM" "851.86250" "0" "0xa" "cqpsk" "ccp25.tsv" "fire.tsv" "" ""
Everything runs fine as services except op25. If I run it interactively it works perfectly.
Does anyone see anything wrong with my config?
My service is op25-rx.service
[Unit]
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/pi/op25/op25/gr-op25_repeater/apps
ExecStart=/bin/bash -- op25.sh
RestartSec=5
Restart=on-failure
[Install]
WantedBy=multi-user.target
My op25.sh is
./rx.py --nocrypt --args 'rtl' --gains 'lna:36' -S 960000 -X -M meta.json -l http:192.168.86.42:8080 -q 0 -v 1 -2 -V -T trunk.tsv -q 0 -w 2>stderr.log
My Trunk.tsv is:
"Sysname" "Control Channel List" "Offset" "NAC" "Modulation" "TGID Tags File" "Whitelist" "Blacklist" "Center Frequency"
"P25 SYSTEM" "851.86250" "0" "0xa" "cqpsk" "ccp25.tsv" "fire.tsv" "" ""