Basic OpenBSD checks and first OpenBSD release #4
Labels
No labels
bug
bullseye
discussion
duplicate
enhancement
help wanted
invalid
question
suggestion
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Depends on
#68 Split every checks in their own files
evolix/evocheck
Reference: evolix/evocheck#4
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Basic OpenBSD checksto Basic OpenBSD checks and first OpenBSD releaseRelation: https://redmine.evolix.net/issues/4284
Suggestion: OpenBSD version should be totally separate from "Debian" code and contains only OpenBSD checks.
It could live on a new project, or in a OpenBSD branch.
An OpenBSD separate branch sounds better to me
Would it not be more interesting to separate the checks into folders? Maybe even have one file per check. You could define an OpenBSD folder, a Debian folder and a Posix folder.
Checks that work on both go in Posix and so on and so forth.
It may be the case in the future. I opened #68.
One idea of @jlecour was to do something like munin plugins with symbolic links to enable a check.
I like evocheck.sh is one-readable-file.
What is the interest to split in this case?
The main reason would be to make it easier to interact with from the command line.
Want active checks?
ls enabled_checks
Want openbsd checks?
ls checks/openbsd
Want to find a check related to apache?
find checks -name '*apache*'
Want to read a check?
cat check/is_evolix_user.sh
Want to read all checks?
cat check/* check/*/*
This is definitely all possible with one single file by using grep(1), but I feel like it requires more knowledge of the structure of the file and various flags.
The second use is that every single conditional branch in a program is another potential bug and using symbolic links allows us to remove most, if not all,
if is enabled
style checks. I believe this would also make these checks more readable.I don't see why/when do you want list openbsd/apache/etc. checks.
For all checks, it's grep IS_ evocheck.sh
For active checks, it's all minus /etc/evocheck.sh
For others arguments, I understand but you loose the advantage to keep one-readable-file which is very important in the case of evocheck (not in general of course)
For others interested in talking about the check = file issue, please see here: #68 (comment)