Solution 1:

It's a shell function in /lib/lsb/init-functions. You should see . /lib/lsb/init-functions earlier in the init script.