}
}
-bool base_process_service::read_pid_file() noexcept
+bool bgproc_service::read_pid_file() noexcept
{
const char *pid_file_c = pid_file.c_str();
int fd = open(pid_file_c, O_CLOEXEC);
virtual void all_deps_stopped() noexcept;
virtual void handle_exit_status(int exit_status) noexcept = 0;
- // Read the pid-file, return false on failure
- bool read_pid_file() noexcept;
-
public:
base_process_service(ServiceSet *sset, string name, ServiceType service_type, string &&command,
std::list<std::pair<unsigned,unsigned>> &command_offsets,
bool doing_recovery : 1; // if we are currently recovering a BGPROCESS (restarting process, while
// holding STARTED service state)
+ // Read the pid-file, return false on failure
+ bool read_pid_file() noexcept;
+
public:
bgproc_service(ServiceSet *sset, string name, string &&command,
std::list<std::pair<unsigned,unsigned>> &command_offsets,