mirror of
https://github.com/binary-kitchen/doorlockd
synced 2024-12-22 18:34:25 +01:00
73868b2d4d
Removed old epaper display and added stub for qrcode printing. Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
17 lines
444 B
C++
17 lines
444 B
C++
#ifndef DAEMON_H
|
|
#define DAEMON_H
|
|
|
|
#include <string>
|
|
|
|
// Daemonizes the process if daemonize is true.
|
|
// If daemonize is true, it will write the new PID to the file "pidFile"
|
|
//
|
|
// This function will also redirect stdin, out and err to the
|
|
// specified files
|
|
void daemonize(const std::string &dir,
|
|
const std::string &stdinfile,
|
|
const std::string &stdoutfile,
|
|
const std::string &stderrfile);
|
|
|
|
#endif
|