SyntaxFix
Write A Post
Hire A Developer
Questions
Ubuntu/Debian distros have the start-stop-daemon tool which is for the same purpose you describe. See also /etc/init.d/skeleton to see how it is used in writing start/stop scripts.
start-stop-daemon
-- Noah