i can run this everywhere on my shell:
bash ~/Documents/myfolder/subfolder/service/autorun.sh
this is my autorun.sh this should start the builded go webservice:
#!/bin/bash
cd ./bin/
sudo ./client-service
this works if i run it on my shell. But if i want to use it in my rc.local for autostart on raspbian with this code:
bash ~/Documents/myfolder/subfolder/service/autorun.sh
The bash script should start the go webserver.
~/Documents/myfolder/subfolder/service/bin/client-service
But it won't start
I hope someone can help me with this problem! thx