Post by Serge StroobandtHi folks!
After having launched the `rigctld` daemon in the background,
how do I stop it?
Thanks for the answers.
The problem is I am launching `rigctld` from a python3 application I am
writing:
print('INFO: Starting `rigctld` for the %s...' % self.name)
model = '--model=' + self.model
rig_file = '--rig-file=' + self.rig_file
port = '--port=' + self.port
shell_command = ['/usr/bin/rigctld', model, rig_file, port]
daemon = subprocess.Popen(shell_command, stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
out, error = daemon.communicate()
When the python application finishes, `rigctld` keeps running.
Thanks to your suggestions, I can manually find the process with `$
pidof rigctld` and `$ sudo kill pid` it.
However, when I relaunch my python program, I can no longer restart
`rigctld`,
as if something kept hanging about.
I need to restart my system to get it running again.
Apparently, I am not alone experiencing such problems.
The authors of CQRLOG have also been struggling with this:
https://github.com/ok2cqr/cqrlog/search?q=rigctld&type=Code&utf8=✓
https://github.com/ok2cqr/cqrlog/issues/35
Unfortunately, CQRLOG is Free Pascal, which is not very helpful to me.
In view of this, I would really welcome an inherent
$ rigctl --model=2 --port=4532 kill
command to kill off `rigctld` daemons.
In the mean time, any python specific launch/kill suggestions are more
than welcome.
Finally, from the mailgroup
https://sourceforge.net/p/hamlib/mailman/hamlib-stationserver/
and
https://sourceforge.net/projects/hamlib/files/stationserver/documents/requirements/
I see, you guys are playing with the idea of a hamlib-stationserver.
Having a service start/stop would be great!
If it gets developed in python3 (which is probably the easiest language
for most of us to pick up), I could actually contribute some code.
Looking forward to your reactions!
73 de Serge, ON4AA