You will need to use the stuff in the /etc/init.d/functions file, specifically the deamon() function I think.
Some results have been hidden because they may be inaccessible to you
Show inaccessible resultsSome results have been hidden because they may be inaccessible to you
Show inaccessible results