Templates for startup script?
Just have a look at the scripts present in /etc/init.d/
. Especially note the README
file there. It also hints to this Debian Policy Manual section on init scripts.
Actually, what you're looking for might be /etc/init.d/skeleton
:
# Short-Description: Example initscript
# Description: This file should be used to construct scripts to be
# placed in /etc/init.d.