Linux Daemon
Daemon Help

The purpose of this program is to create a daemon that would run in the background and monitor a folder. Inside the folder, the application looks for new files or edits and creates copies and encrypted copies stored in .secure and .versions folders.

Daemon Start

When the daemon starts, it reads a config file which is TOML compliant using RudeConfig.

Daemon Log

The daemon reads the config file and determines that 3 copies should be recorded. From the log file, we see old files are removed.

Secure Copies

The program stores file copies with date-stamps in .versions and encrypted ones in .secure folders.

Decryption Program

A separate program decrypts the encrypted files.

Signal Handling

The program receives a signal, re-reads the config file, and re-configures accordingly.

Log File

The program writes to a log file. In this log, we see a signal was caught and some settings were reconfigured.