11#include <boost/shared_ptr.hpp>
45 PIDFile(
const std::string& filename);
69 void write(
int)
const;
88 std::string filename_;
This is a base class for exceptions thrown from the DNS library module.
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
Exception thrown when an error occurs trying to read a PID from an opened file.
PIDCantReadPID(const char *file, size_t line, const char *what)
Exception thrown when an error occurs during PID file processing.
PIDFileError(const char *file, size_t line, const char *what)
Class to help with processing PID files.
PIDFile(const std::string &filename)
Constructor.
void write() const
Get PID of the current process and write it to the file.
void deleteFile() const
Delete the PID file.
std::string getFilename() const
Returns the path to the PID file.
int check() const
Read the PID in from the file and check it.
boost::shared_ptr< PIDFile > PIDFilePtr
Defines a shared pointer to a PIDFile.
Defines the logger used by the top-level component of kea-lfc.