Skip to main content

install_daemon

Function install_daemon 

Source
pub fn install_daemon(interval_days: u64) -> Result<()>
Expand description

Install the OS-native daemon/scheduled task, firing every interval_days days.

The scheduled command always passes --yes: there is no terminal attached to a scheduler-launched process, so a run that stopped to ask for confirmation would simply abort every time. Safety still comes from the idle check and lockfile enforcement, both of which the daemon run performs normally.