Reference

cron feature

What it does

BusyBox crond, running the scheduled jobs other features send.

Use it

Import it from (vessel system features cron). This part of a system configuration uses it:

Example: feature-cron-example

(import (vessel system)
        (vessel system features cron))

;; cron runs every scheduled job other features send, such as this
;; weekly cleanup.
(system-configuration
  features:
    (append
      (list (cron-feature)
            (simple-feature 'cleanup jobs-feature
              (list (scheduled-job name: "clean-tmp"
                                   schedule: "0 4 * * 0"
                                   argv: '("/bin/find" "/tmp" "-mtime" "+7"
                                           "-delete")))))
      %base-features))

Verified

A real system.sgl also sets the fields this example leaves out: the host name, kernel, boot loader and file systems. Every time the manual is built, it composes this configuration with Vessel's code and checks what the feature receives.

Options

None. This feature type takes no configuration.

What it adds

Its declared extensions target these feature types:

What it receives

It implements these receiving contracts:

Used in

No page refers to it yet.

Created with Sigil