I am running Debian on an RPi 3. I have jackd started as a service using systemd and it works nicely. Jackd runs under a regular user and has RT priority and Memlock permissions set.
I am trying to start pd as a service too. However it cannot connect to the running jackd service. If I call "sudo systemctl start pd" and then check the status with "sudo systemctl status pd" it shows the the pd process couldn't find the jack server. However if I run pd from the command line it can connect to jack. The systemd service file for pd has the same user, priority and memory limits as the jackd service.
Is there anything that stops pd running as a systemd service? Any ideas?