Before deploying one of my new AVR32 AP7001 systems, I added a script to the /etc/init.d directory to run another script situated in a root directory /programs. Here is the basic code of the script (named S60startup)
#!/bin/sh cd /programs sh /programs/startup.sh
I then used chmod on the script to make it executable:
chmod +x ./S60startup
The startup.sh script sets up the system and runs a userland program to provide system functionality.
However, I've found that it is now impossible to terminate the userland program using Ctrl-C.
What is the recommended way to run a program on startup so that I can later terminate the program?
Is it now possible to terminate the userland program at all? What would be the best way to proceed?