Module daemon
Source - DaemonStatus
- Status information about the daemon.
- check_status
- Check the status of the daemon.
- cleanup
- Clean up daemon resources (call on normal shutdown).
- daemonize
- Daemonize the current process (Unix).
- get_daemon_dir
- Get the directory for storing daemon state files.
Returns ~/.seren-replicator/ on Unix or %APPDATA%\seren-replicator\ on Windows
- get_log_file_path
- Get the path to the log file for daemon mode.
- get_pid_file_path
- Get the path to the PID file.
- init_daemon_child
- Initialize daemon child process (write PID file, setup logging).
Call this at startup if is_daemon_child() returns true.
- is_daemon_child
- Check if we’re running as a daemon child process (Windows).
On Unix this is handled by the daemonize crate.
- print_status
- Print daemon status to stdout.
- read_pid
- Read the PID from the PID file.
- remove_pid_file
- Remove the PID file.
- stop_daemon
- Stop the running daemon.
- write_pid
- Write the current process PID to the PID file.