pi@raspberrypi:~ $ service bt_speaker status
● bt_speaker.service - "Simple bluetooth speaker for the Raspberry Pi"
Loaded: loaded (/opt/bt-speaker/bt_speaker.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2017-12-04 13:54:47 UTC; 24s ago
Main PID: 1164 (bt_speaker.py)
CGroup: /system.slice/bt_speaker.service
└─1164 /usr/bin/python /opt/bt-speaker/bt_speaker.py
Dec 04 13:54:47 raspberrypi systemd[1]: Started "Simple bluetooth speaker for the Raspberry Pi".
Dec 04 13:54:48 raspberrypi bt_speaker.py[1164]: Failed to create secure directory (/home/btspeaker/.config/pulse): No such file or directory
Dec 04 13:54:48 raspberrypi bt_speaker.py[1164]: Failed to load cookie file from cookie: No such file or directory
Dec 04 13:54:48 raspberrypi bt_speaker.py[1164]: Failed to create secure directory (/home/btspeaker/.config/pulse): No such file or directory
Dec 04 13:54:48 raspberrypi bt_speaker.py[1164]: Failed to load cookie file from cookie: No such file or directory
Dec 04 13:54:48 raspberrypi bt_speaker.py[1164]: Failed to create secure directory (/home/btspeaker/.config/pulse): No such file or directory
Dec 04 13:54:48 raspberrypi bt_speaker.py[1164]: Failed to load cookie file from cookie: No such file or directory
Dec 04 13:54:48 raspberrypi bt_speaker.py[1164]: ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Access denied
Dec 04 13:54:48 raspberrypi bt_speaker.py[1164]: aplay: main:788: audio open error: Connection refused
pi@raspberrypi:~ $ service bt_speaker status ● bt_speaker.service - "Simple bluetooth speaker for the Raspberry Pi" Loaded: loaded (/opt/bt-speaker/bt_speaker.service; enabled; vendor preset: enabled) Active: active (running) since Mon 2017-12-04 13:54:47 UTC; 24s ago Main PID: 1164 (bt_speaker.py) CGroup: /system.slice/bt_speaker.service └─1164 /usr/bin/python /opt/bt-speaker/bt_speaker.py
Dec 04 13:54:47 raspberrypi systemd[1]: Started "Simple bluetooth speaker for the Raspberry Pi". Dec 04 13:54:48 raspberrypi bt_speaker.py[1164]: Failed to create secure directory (/home/btspeaker/.config/pulse): No such file or directory Dec 04 13:54:48 raspberrypi bt_speaker.py[1164]: Failed to load cookie file from cookie: No such file or directory Dec 04 13:54:48 raspberrypi bt_speaker.py[1164]: Failed to create secure directory (/home/btspeaker/.config/pulse): No such file or directory Dec 04 13:54:48 raspberrypi bt_speaker.py[1164]: Failed to load cookie file from cookie: No such file or directory Dec 04 13:54:48 raspberrypi bt_speaker.py[1164]: Failed to create secure directory (/home/btspeaker/.config/pulse): No such file or directory Dec 04 13:54:48 raspberrypi bt_speaker.py[1164]: Failed to load cookie file from cookie: No such file or directory Dec 04 13:54:48 raspberrypi bt_speaker.py[1164]: ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Access denied Dec 04 13:54:48 raspberrypi bt_speaker.py[1164]: aplay: main:788: audio open error: Connection refused