mod client;
mod executable;
mod executable_copy;
mod lock;
mod paths;
mod platform;
mod server;
mod service;
mod shutdown;
mod spawn;
mod spawn_env;
#[cfg(test)]
pub(crate) mod test_support;
pub(crate) use client::{
connect, connect_raw, connect_restarting, ConnectAs, ConnectError, Connection,
DAEMON_RESTART_TIMEOUT,
};
pub(crate) use executable::{Executable, ProbeError};
pub(crate) use lock::{
acquire as acquire_lock, holder as lock_holder, terminate_recorded_daemon, wait_until_released,
DaemonLock, LockHolder,
};
pub(crate) use paths::{real_home, DaemonPaths, SocketFound};
pub(crate) use platform::Stream as RawStream;
#[cfg(all(test, unix))]
pub(crate) use platform::DaemonPathError;
pub(crate) use platform::{
account_lock_path, create_private_dir, create_private_file, lock_account_file,
release_freed_memory, stderr_is_journal_stream, sync_dir, FileIdentity, StopRequests,
REPLACEABLE_WHILE_RUNNING,
};
#[cfg(unix)]
pub(crate) use platform::{adopt, reap_exited_children, set_close_on_exec};
pub(crate) use server::{bind, rebind, take_handoff, Served};
pub(crate) use service::{find_services, ServiceFiles, ServiceManager};
#[cfg(test)]
pub(crate) use service::{
DAEMON_HTTP_LAUNCHD_LABEL, DAEMON_HTTP_SYSTEMD_UNIT, LAUNCHD_LABEL, SYSTEMD_UNIT,
};
pub(crate) use shutdown::{Ending, Shutdown};
pub(crate) use spawn::{connect_or_spawn, DaemonSpawner, ProcessSpawner, RunFrom, SpawnFuture};
pub(crate) use spawn_env::{differing_variables, VariableKind};