- Updated 26/3/18 to correct typo in Unit file
The excellent Airspy Spy Server can easily be used as a service using SYSTEMD under Linux. This is a much better way to autostart the server as it gives you the facility to stop/start/check status of the server at any time. I’ve used this facility in my latest Spy Server SD card (to be released very soon!) so you can switch between receiver types without having to reboot the Pi.
Running Spy Server as a Service
The first step is to create a new file called spyserver.service and save it in /etc/systemd/system/.
The simplest way to do this is using nano as follows:
sudo nano /etc/systemd/system/spyserver.service
Now enter the following text into the file and save it (Ctl x y Enter):
You can now start, stop and check the status of Spy Server with the following commands:
sudo systemctl start spyserver.service
sudo systemctl stop spyserver.service
sudo systemctl status spyserver.service
The following command will activate the service to automatically start at boot time:
sudo systemctl enable spyserver.service
Mike – G4WNC