> Since it also uses a script, this means as soon as the script > has started running the started event is likely emitted,
This should not be the case. The script is:
if [ -f "$DEFAULTFILE" ]; then . "$DEFAULTFILE" fi
if [ "x$NEED_STATD" != xno ]; then exec rpc.statd -L $STATDOPTS fi
These are all shell builtins (by design) until rpc.statd execs. So the first fork is within rpc.statd.
> Since it also uses a script, this means as soon as the script
> has started running the started event is likely emitted,
This should not be the case. The script is:
if [ -f "$DEFAULTFILE" ]; then
. "$DEFAULTFILE"
fi
if [ "x$NEED_STATD" != xno ]; then
exec rpc.statd -L $STATDOPTS
fi
These are all shell builtins (by design) until rpc.statd execs. So the first fork is within rpc.statd.