mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
Check for rigctld at exit and stop it if needed
This commit is contained in:
parent
f0ef1d3673
commit
3afdbdbd8e
1 changed files with 13 additions and 0 deletions
|
@ -15,6 +15,8 @@
|
|||
# We expect the config.ini file to be at $HOME/.config/FreeDATA/config.ini
|
||||
# If it isn't found, we copy config.ini.example there
|
||||
#
|
||||
# 1.5: 05 May 2024
|
||||
# Check for rigctld at exit and stop it if needed
|
||||
# 1.4: 05 May 2024
|
||||
# Added comments on how to view log outputs in realtime
|
||||
# 1.3: 02 May 2024
|
||||
|
@ -120,5 +122,16 @@ echo "Stopping the server component"
|
|||
echo "*************************************************************************"
|
||||
kill $serverpid
|
||||
|
||||
# If rigctld is still running, stop it
|
||||
checkrigctld=`ps auxw | grep -i rigctld | grep -v grep`
|
||||
if [ ! -z "$checkrigctld" ];
|
||||
then
|
||||
echo "*************************************************************************"
|
||||
echo "Stopping rigctld"
|
||||
echo "*************************************************************************"
|
||||
rigpid=`echo $checkrigctld | cut -f2 -d" "`
|
||||
kill $rigpid
|
||||
fi
|
||||
|
||||
# Return to the directory we started in
|
||||
cd ..
|
||||
|
|
Loading…
Reference in a new issue