Reputation: 4757
I have some trouble with starting my written C++ application each time my raspberry pi with raspbian OS boots. I found the following instructions:
http://www.stuffaboutcode.com/2012/06/raspberry-pi-run-program-at-start-up.html
So I followed all of the mentioned steps:
case "$1" in
start)echo "Starting my programm..."
/home/pi/myProgram ;;
Note: In reality this file is well formatted and I dont get a parsing error! However if I want to start my own service with
sudo service myScript start
i get the following message:
/home/pi/myProgram no such process
Seems to me that my C++ program can not be found? What should I do?
Upvotes: 0
Views: 5655
Reputation: 1319
"no such process" is almost certainly the output of the "killall" command, which would be invoked when you call "service myScript stop". I think you should double-check the init script that you copied and altered; it looks like the syntax for the case...esac got mangled.
Upvotes: 1