Right, that's not a fifo, that's because the Bela program starts before the fifo is created.
rph-r The exact code is this one:
Show the service file in /lib/systemd/system/ ?
An easy solution should be to create a file /opt/local/Bela/bela_startup.sh /opt/Bela/local/bela_startup.sh with the following content:
#!/bin/bash
[ -p /tmp/fifo ] || mkfifo /tmp/fifo
[ -z "$BELA_HOME" ] && BELA_HOME=/root/Bela
[ "$ACTIVE" -eq 0 ] && {
echo "No Bela project set to run on boot" >& 2
# this should not happen, and if it does, we prevent it from happening
# again (till the next reboot!)
make -C "$BELA_HOME" stopstartup
exit 1
}
if [ "$PROJECT" = "" ]
then
# run all projects called loop_* in a loop
ls "$BELA_HOME"/projects/loop_* &>/dev/null &&\
while sleep 0.1; do
for PROJECT in "$BELA_HOME"/projects/loop_*; do
echo Running $PROJECT;
/usr/bin/make -C /root/Bela PROJECT=`basename "${PROJECT}"` CL="${ARGS}" runonly
done
done
else
/usr/bin/make -C "$BELA_HOME" PROJECT="$PROJECT" runonly CL="$ARGS"
fi
and then edit your fifo.sh so that instead of mkfifo /tmp/fifo you have:
[ -p /tmp/fifo ] || mkfifo /tmp/fifo