LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-19-2017, 05:32 PM   #1
theKbStockpiler
Member
 
Registered: Sep 2009
Location: Central New York
Distribution: RPM Distros,Mostly Mandrake Forks;Drake Tools/Utilities all the way!GO MAGEIA!!!
Posts: 986

Rep: Reputation: 53
systemD : add new file to monitor


I want to monitor a file that systemD does not currently monitor.How do I add my own file to systemD's services?

Thanks for your expertise!
 
Old 10-19-2017, 07:29 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,272
Blog Entries: 28

Rep: Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124
Is it a log file?

I think this tutorial might help; it includes a section on how to creat daemons from scripts: https://www.loggly.com/blog/logging-...-with-systemd/
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
wanting to add memlockd from initd to systemd galen Ubuntu 2 06-19-2017 11:39 AM
[SOLVED] Is there an easy way to convert sysV to systemd scripts? Or add dependencies to a sysV script? irey Linux - Software 2 10-19-2016 06:51 AM
systemd-networkd: prevent default gateway + add static route to dhcp bluedeep Linux - Networking 9 03-11-2016 02:45 PM
[SOLVED] How to: tkinter-python to monitor a file, add buttons automatically, and exit cleanly donnied Programming 0 10-13-2012 01:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration