raspberry-rtlsdr-server icon indicating copy to clipboard operation
raspberry-rtlsdr-server copied to clipboard

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

Open Oxalin opened this issue 2 years ago • 0 comments

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.

Oxalin avatar Nov 22 '23 04:11 Oxalin