local pidfile=""
local forcestart=""
local nicelevel=""
+ local pid
# This will ensure compatibility with previous LFS Bootscripts
if [ -n "${PIDFILE}" ]; then
(
${cmd} &>/dev/null
) &
+ pid="$!"
evaluate_retval
else
${cmd}
+ pid="$!"
evaluate_retval # This is "Probably" not LSB compliant, but required to be compatible with older bootscripts
fi
+ # Write the pidfile
+ if [ -n "${pid}" -a -n "${pidfile}" ]; then
+ echo "${pid}" > "${pidfile}"
+ fi
+
return 0
}