I have a systemd unit which execute a script that is supposed to play a sound in case a certain event happens i.e. it contains a line
This does not happen. The script looks correct, since it works when run on its own.
Why does this happen and how do I fix it?