User Tools

Site Tools


os:linux:file_watcher_service

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
os:linux:file_watcher_service [2020-12-05 11:27] Manuel Freios:linux:file_watcher_service [2020-12-05 11:30] (current) Manuel Frei
Line 58: Line 58:
 systemctl daemon-reload systemctl daemon-reload
 systemctl start file_watcher.service systemctl start file_watcher.service
 +</code>
 +
 +If you need to create some form of monitoring script/actions, maybe this snippets will help you:
 +<code>
 +[root@server ~]# systemctl is-active file_watcher.service >/dev/null && echo OK || echo NOK
 +OK
 +[root@server ~]# systemctl stop file_watcher.service 
 +[root@server ~]# systemctl is-active file_watcher.service >/dev/null && echo OK || echo NOK
 +NOK
 </code> </code>
os/linux/file_watcher_service.1607164041.txt.gz · Last modified: 2020-12-05 11:27 by Manuel Frei