Long-standing advice on writing van Smoorenburg rc scripts for Debian, from many sources including the Debian Policy Manual and answers on StackExchange, until now has been:
An example on which you can base your
/etc/init.dscripts is found in/etc/init.d/skeleton.
Is this still the case?