Surprised you're not using:
```
. /etc/init.d/functions
```
A lot of useful things and helps standardize init scripts.