% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/infra__heartbeat.R
\name{.heartbeat_build_script}
\alias{.heartbeat_build_script}
\title{Build Background Heartbeat Shell Script}
\usage{
.heartbeat_build_script(
  stopfile,
  phasefile,
  progress_file,
  pidfile,
  label,
  interval_sec,
  stall_after_sec,
  r_pid
)
}
\arguments{
\item{stopfile}{Stop signal file.}

\item{phasefile}{File used by R to communicate phase transitions.}

\item{progress_file}{Backend progress state file.}

\item{pidfile}{File where heartbeat writes its own pid.}

\item{label}{Display label.}

\item{interval_sec}{Mid-speed cadence in seconds.}

\item{stall_after_sec}{Idle threshold for "stalled" status.}

\item{r_pid}{R process id to monitor.}
}
\value{
Single shell script string.
}
\description{
Build Background Heartbeat Shell Script
}
\keyword{internal}
