bcron-update(8)

πŸ’– bcron-update(8) πŸ’–

okay bestie, welcome to the System Manager's Manual glow-up edition of bcron-update(8) β€” she's a section 8 girlie and she's about to make your crontabs ✨immaculate✨


🌸 NAME 🌸

bcron-update β€” Update system crontabs. that's it, that's the job, and she does it flawlessly πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

bcron-update path [ path ...  ]

✨ DESCRIPTION ✨

so like, bcron-update polls the files or directories you named, on a lil periodic schedule, just vibing and checking: is there anything new, changed, or removed in here? πŸ‘€

the moment it clocks a change, it mirrors that change straight into the crontab spool directory. no cap, that's the whole personality.

and she runs as root, because bestie has to read system files that would otherwise be literally unreadable. main character privileges, but make it necessary. πŸ‘‘

Debian girlies, listen up: on Debian, if path is a directory, bcron-update skips files in that directory whose names don't solely consist of: - lower- and uppercase letters (a-z, A-Z) - digits (0-9) - underscores (_) - hyphens (-) anything else? skipped. not invited to the function. πŸ™ˆ

πŸŽ€ EXAMPLES πŸŽ€

want that classic modern vixie-cron behaviour? the way to mirror it is literally:

bcron-update /etc/crontab /etc/cron.d

ate. πŸ’–


🌈 ENVIRONMENT 🌈

  • BCRON_SPOOL β€” the spool directory for bcron. defaults to /var/spool/cron. that's her home base, her safe space 🫢
  • BCRON_USER β€” after writing files and before moving them into their final location, bcron-update changes the ownership of the file to this user, so that bcron-sched can read them. teamwork makes the dream work fr fr ✨

πŸ’œ SEE ALSO πŸ’œ

go say hi to her sister, iykyk 🧚


πŸ’€ DIAGNOSTICS πŸ’€

bcron-update outputs three different kinds of messages about the actions she's taking. three. like a lil trio of status updates. iconic.

  • Rescanning /etc/cron.d β€” the named directory has been modified, and will be scanned to determine what files have been added or deleted. she's doing a full vibe check on the whole folder πŸ•΅οΈ
  • -/etc/cron.d/oldfile β€” the named file no longer exists and will be removed from the spool. rip boo, you had a good run 😭
  • +/etc/cron.d/newfile β€” the named file was either created or modified since the last scan, and will be copied into the spool. new arrival just dropped πŸ”₯

πŸ‘‘ AUTHOR πŸ‘‘

Bruce Guenter <bruce@untroubled.org> β€” the legend, the architect, the one who made this all possible 🫢


and that's the whole page bestie!! this was bcron-update(8) out of the System Manager's Manual, section 8, and she devoured every single time. go update those crontabs, you absolute icon πŸ’…βœ¨πŸ’–