Hello all! I was wondering if someone could help me out.
I have two separate satnog stations. A UHF and a VHF station.
While idle, I would like for them to act as APRS iGates.
I have the POST_OBSERVATION_SCRIPT working just fine that starts rtl_fm and direwolf after the observation and functions great as an APRS iGate.
The problem I’m having is with the PRE_OBSERVATION_SCRIPT killing the apps before the observation. It doesn’t seem to want to kill the programs. I can run the script on the command line as the pi user and both of the applications close just fine.
I have added the satnogs user to the pi group in case that was the issue, but it’s not working either.
Here is my PRE_OBSERVATION_SCRIPT to kill rtl_fm and direwolf
-rwxr-xr-x 1 pi pi 97 Mar 24 16:31 vhfigatestop.sh
#killall direwolf rtl_fm
sudo kill $(pgrep -f direwolf)
sudo kill $(pgrep -f rtl_fm)
Here is my POST_OBSERVATION_SCRIPT to start the iGate
-rwxr-xr-x 1 pi pi 123 Mar 25 08:42 vhfigatestart.sh
rtl_fm -f 144.39M -M fm -s 200000 -r 32000 -p 100 | direwolf -c /home/pi/igate.conf -n 1 -r 32000 -b 16 -t 0 -
Here is a diagram I worked up to help me perhaps see where my issue might be.
Here is a view of how I’m monitoring if the scripts are run. You can see on the left (vhf) station that it’s in the middle of an observation and direwolf and rtl_fm are still running.
Thanks for any help!
Adam - KD5QZG