]> Kevux Git Server - fll/commit
Progress: controller program, begin working on pid file related executions.
authorKevin Day <thekevinday@gmail.com>
Fri, 16 Apr 2021 04:20:22 +0000 (23:20 -0500)
committerKevin Day <thekevinday@gmail.com>
Fri, 16 Apr 2021 04:27:51 +0000 (23:27 -0500)
commitdaa284c3219419d7b718167f84386b2e9a44cae8
tree09b43d6044f7f970b2db1dffec349931236ae755
parenta5bec2dc3fc5021b6b7a83f05a0918dc22cc78df
Progress: controller program, begin working on pid file related executions.

It occurred to me that I could quickly create a process with a PID file using a script.
I then realized that "service" only applies to binaries and not scripts.
Add a new type called "utility" that is identical to "service" in purpose except that it processes scripts.

Begin implementing the PID file related code.
It seems there are a few things to address, such as proper test output display.
For example, I am seeing "Simulating execution of '/var/run/sshd.pid' with the arguments: '' from 'SSH Service'.".
That "/var/run/sshd.pid" should instead be "/usr/sbin/sshd".

Creating or checking existence of the PID files is not yet written.
The behavior of after a process forks is not yet written either.

An error needs to be printed and F_failure (with error bit set) should be returned.

The "success = F_failure" should probably have error bit set.

Add new rules and entries for testing this (to be implemented) functionality.

Update the documentation.
Some of the documentation is outdated and as a result, wrong.
level_3/controller/c/private-common.h
level_3/controller/c/private-rule.c
level_3/controller/c/private-rule.h
level_3/controller/data/settings/example/entries/sshd.entry [new file with mode: 0644]
level_3/controller/data/settings/example/entries/utility.entry [new file with mode: 0644]
level_3/controller/data/settings/example/rules/service/sshd.rule [new file with mode: 0644]
level_3/controller/data/settings/example/rules/utility/sleeper_1.rule [new file with mode: 0644]
level_3/controller/data/settings/example/rules/utility/sleeper_2.rule [new file with mode: 0644]
level_3/controller/documents/rule.txt
level_3/controller/documents/simulate.txt
level_3/controller/specifications/rule.txt