the title pretty much sums it up.
how do I add a startup.sh and shutdown.sh of my server app to the startup and shutdown sequence of the Debian OS?
On Debian, service & application boot and shutdown scripts should be placed into
Debian provides an example script
Once it's in place, call:
To have Debian add the
If you prefer a menu or graphical interface, take a look at the
You can call your script from /etc/rc.local, prior to the line that says exit 0
As for shutting down your app, I would suggest putting a script in /etc/rc0.d. You need to name it with an uppercase K, and then a 2 digit number which specifies the order these scripts are run, and then a name. It will be called with a parameter "stop", but you can ignore this for a simple stop script.
For startup have a look at this.
For shutdown, create a link / copy your script into one of the /etc/rcX.d folders where X is the runlevel that you want it to execute at. 0 is the shutdown runlevel for Debian I believe.