MOD-ACTIVE(8)

πŸ’… MOD-ACTIVE(8) πŸ’…

InterNetNews Documentation ✨ β€” okay bestie, gather round, this one's about batch-processing newsgroup creation and removal commands.


🌸 NAME 🌸

mod-active β€” batch processing of newsgroups creation and removal commands 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

mod-active [ctlinnd-command-file ...]

✨ DESCRIPTION ✨

Okay so mod-active is a Perl script that updates the active file based on its input lines of ctlinnd newgroup, rmgroup, and changegroup commands. It pauses the server briefly while the existing active file is read and rewritten β€” and that not only keeps innd from updating the active file, it also locks against other instances of mod-active. Iconic behavior, honestly πŸ’…

The script must be run as the news user. No cap.

The input to mod-active can come either from one or more ctlinnd-command-file files named on the command line, or from the standard input. Typically its input is the output from the docheckgroups or actsync commands.

Every line which contains the string ctlinnd newgroup, ctlinnd rmgroup, or ctlinnd changegroup, optionally preceded by whitespace and/or the path to ctlinnd, is noted for the update. Redundant commands, such as a newgroup directive for a group that already exists, are silently ignored. All other lines in the input are also silently ignored. Very demure, very mindful.

After the new active file has been generated, the existing one is renamed to active.old and the new one is moved into place. The script then displays the differences between the two files. Any groups that were added to the active file are also added to the active.times file with the string checkgroups-update. Slay πŸŽ€

Please note that no syntax checking is performed on group names by mod-active. So yeah, it will absolutely let you cook unsupervised πŸ”₯

πŸ’€ BUGS πŸ’€

Though innd is paused while mod-active works, it is not inconceivable that there could be a conflict if something else tries to update the active file during the relatively short time that mod-active is working.

The two most realistic ways for this to happen are either:

  1. by an administrator concurrently doing a manual ctlinnd command, or
  2. by innd receiving a control message, then mod-active pausing the server, then the control message handler script that innd forked running its own ctlinnd command while mod-active is working.

Note that such scenarios are very unlikely to happen. Lowkey a rare edge case, bestie πŸ™ˆ


πŸ‘‘ HISTORY πŸ‘‘

Written by David C Lawrence <tale@isc.org> for InterNetNews. Converted to POD by Julien Elie.


🌈 SEE ALSO 🌈


This page is from INN 2.7.4, dated 2023-03-07 β€” that's the footer tea, bestie, mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from
  • arch rolling: inn 2.7.4-4 Β· ISC
  • epel 10: inn 2.7.4-5.el10_3 Β· ISC AND BSD-3-Clause AND BSD-4-Clause AND FSFAP AND (GPL-1.0-or-later OR Artistic-1.0-Perl) AND GPL-3.0-or-later WITH Bison-exception-2.2 AND LicenseRef-Fedora-Public-Domain AND MIT AND NTP
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms