The best way is to look at how other init scripts do it (please fill in your distro info in your profile) but somethin like
Code:
status) echo -en "test1d: "; /usr/bin/pgrep -lf '/home/try/test1d' >/dev/null 2>&1 && running || echo gone;;
could work. It relies on 'pgrep' and on you not using "./test1d" but "/home/try/test1d" to start your process. Also note that the she-bang line must be the first line of your script (no newlines above it) and if this is about kernel modules (as one of your comments suggest) then there are other ways to load those, unless you require more finegrained control over it wrt timing.