c4software / raspberry-rtlsdr-server

Quick guide to setup a RTL SDR Server on a Raspberry Pi.
58 stars 7 forks source link

Systemctl fails to execute because of WorkingDirectory (code=exited, status=200/CHDIR) #2

Open Oxalin opened 12 months ago

Oxalin commented 12 months ago

Hi,

Error Your last updates to the README.md still suggests to set WorkingDirectory=/home/pi. However, this leads to the following error Process: 1710 ExecStart=/bin/sh -c /usr/bin/rtl_tcp -a $(hostname -I) (code=exited, status=200/CHDIR)

Cause Under Raspberry Pi OS BookWorm, the default "pi" user doesn't exist anymore. The user is prompted to create their own.

Solution The WorkingDirectory can either be set to an actual user directory OR the parameter can be removed. Both options allow Systemctl to run the service properly. So WorkingDirectory needs to be modified.

However, at this moment, I have no idea if rtl_tcp depends on having a WorkingDirectory set to an actual user.