Snooze

Jul 20, 2023

Run a command at a particular time

Snooze waits until a particular time and then runs a command. Together with a service supervision system such as runsv8 from sysutils/runit, this can be used to replace cron8.

Benefits over cron8

  • mnemonic syntax
  • no overlapping job runs possible
  • filtering by ISO week and day of year
  • no centralized daemon required no fuzzing with multiple users/permissions
  • can easily disable jobs or force their execution instantly
  • have custom logs
  • very robust with respect to external time changes
  • can use a file timestamp to ensure minimum waiting time between two runs, even across reboots
  • randomized delays
  • variable slack
  • ad-hoc usage possible, just run the program from command line


Checkout these related ports:
  • Zxfer - Easily and reliably transfer ZFS filesystems
  • Ztop - Display ZFS dataset I/O in real time
  • Zsm - ZFS Snapshot Manager
  • Zsd - Destroys ZFS snapshots
  • Zrepl - ZFS dataset replication tool
  • Zrep - ZFS based replication and failover solution
  • Zpool-iostat-viz - ZFS pool I/O latency statistics
  • Zoxide - Fast cd alternative that learns your habits
  • Zogftw - Creates redundant backups on encrypted ZFS pools
  • Znapzend - ZFS-centric backup tool
  • Zisofs-tools - User utilities for zisofs
  • Zidrav - File corruption detection and repair program
  • Zfstools - OpenSolaris-compatible auto snapshotting for ZFS
  • Zfsnap2 - Portable performant script to make rolling ZFS snapshots easy
  • Zfsnap - Simple sh script to make zfs rolling snaphosts with cron