You are not logged in.
when I start my stage-2 systemd boot, I want to log every file that is being opened for reading or writing (to /var/log/accessed.log). am I reinventing the wheel if I write this or is there already a standard service that does this?
my plan is to use the fanotify_event framework to write a file logger, presumably with a service file like.
[Unit]
Description=fanotify-logger
DefaultDependencies=no
After=local-fs.target
[Service]
Type=oneshot
ExecStart=/usr/local/bin/fanotify-all / /var/log/accessed.log
is there a best-practices recommendation where local sysadmins should insert such services (e.g., which directory, steps, etc.) and, does my logger need to know how to shutdown, or will the standard systemd service shut this down by itself?
/iaw
Offline