Initial commit
This commit is contained in:
18
fanotify-projekt.service
Normal file
18
fanotify-projekt.service
Normal file
@@ -0,0 +1,18 @@
|
||||
[Unit]
|
||||
Description=Fanotify → Tag Event → Message Hub
|
||||
Requires=message-hub.service
|
||||
After=message-hub.service
|
||||
RequiresMountsFor=/srv/Projekt
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=messagehub
|
||||
Group=messagehub
|
||||
WorkingDirectory=/srv/Projekt/message-hub/system2
|
||||
ExecStart=/bin/sh -c '/srv/Projekt/fanotify-logger/fa2json /srv/Projekt | tee -a /srv/project-fs.log | node tag-event.mjs'
|
||||
AmbientCapabilities=CAP_SYS_ADMIN CAP_DAC_READ_SEARCH
|
||||
NoNewPrivileges=yes
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user