Giter Club home page Giter Club logo

filewatcherservice's Introduction

FileWatcherService

This watches listed files in the configuration and alerts administrators if the files are missing or do not have the correct read/write permissions

Here are the steps to set up this service:

  1. Go on over to the releases page and download the newest binaries.
  2. Make a directory on your computer somewhere. I'd personally recommend C:\Program Files (x86)\FileWatcherService
  3. Extract the binary into that directory
  4. Go into the appsettings.json file and fill in the following settings
"fileWatcherOptions": {
  "timeDelayInMilliseconds": 60000, //  This is how frequently(in milliseconds) the service will scan the listed files default is one minute
  "emailTitle": "", //  The title/subject/topic of the email
  "emailBody": "", //  The body of the email that displays before the listed file errors
  "emailsToNotify": [ //  A list of emails to send the errors 
    "<emailOne>",
    "<emailTwo>"
  ],
  "filesToCheck": [ //  A list of file paths to check (this will verify that directories exist too)
    "<filePath>",
    "<AnotherFilePath>"
  ]
},
"smtpEmailClientOptions": { //  PLEASE DON'T USE YOUR PERSONAL EMAIL HERE. MAKE A SEPERATE EMAIL ACCOUNT FOR THIS SERVICE.
  "smtpClientUrl": "smtp.gmail.com", //  The address of your smtp email server
  "smtpClientPort": 587, //  The port for your smtp server. This is the default smtp port 
  "smtpClientEmail": "", //  The smtp user email address for authentication and for sent from address
  "smtpClientPassword": "" //  The smtp user password for authentication
}
  1. Open up an administrator powershell in the install directory and run the following commands a. sc.exe create FileWatcherService binpath= C:\Program Files (x86)\FileWatcherService\FileWatcher.exe start= auto(if you didn't follow my install location recommendation you're on your own )
  2. Open up the windows services tool and find the service called FileWatcherService and start it
  3. Now you should be able to find logs in C:\temp\fileTrackingWorkerService\Log.txt

If anything is broken or you see I'm missing steps please contact me at KyleMoran.mail(AT)gmail.com

filewatcherservice's People

Contributors

quinm0 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.