by isabido » Wed Jul 30, 2014 7:29 am
I need to start a script at startup to run sound through a PCM type EQUAL. If I run it directly from the SSH session works correctly.
For example:$this->bbcode_second_pass_quote('', ' ')/ usr/bin/aplay-D equal /root/piano2.wav
But if it is run from the "units" start as a service, displays an error that does not have permissions to access the pcm.equal.
$this->bbcode_second_pass_quote('', '[')Unit]
Description=Aplay test
[Service]
ExecStart=/bin/bash -c '/usr/bin /aplay-D equal / root/piano2.wav'
[Install]
WantedBy=multi-user.target
$this->bbcode_second_pass_quote('', 'J')ul 30 09:11:28 raspi bash[720]: aplay: main:722: audio open error: Operation not permitted