Compare commits

..

No commits in common. "c3a572619f8f30a0f6bd079ab14b8f92d198f8d3" and "e7ca4cb4344cff762f19283a59521751f4354cbf" have entirely different histories.

5 changed files with 4 additions and 16 deletions

View File

@ -4,13 +4,9 @@ Watchdog for monitoring web-services
## Requirements
###On \*nix
- OpenSSL 1.0.1, 1.0.2, 1.1.0, or 1.1.1 with headers (see https://github.com/sfackler/rust-openssl)
- Perl
- Curl
**On \*nix:** OpenSSL 1.0.1, 1.0.2, 1.1.0, or 1.1.1 with headers (see https://github.com/sfackler/rust-openssl)
###On Windows
- PowerShell
**On Windows:** Nothing
## Configuration file

View File

@ -5,7 +5,7 @@ Description=Watchdog service
User=wwwrun
Group=www
Type=simple
ExecStart=/usr/local/sbin/cai-watchdog
ExecStart=/usr/local/bin/cai-watchdog
KillMode=control-group
NotifyAccess=all

View File

@ -3,10 +3,9 @@ extern crate ini;
extern crate exitcode;
use std::env;
use std::path::Path;
use std::process::Command;
use std::thread;
use std::time::Duration;
use std::process::Command;
/// Rule description structure
pub struct Rule {
@ -162,13 +161,6 @@ fn main() {
"/etc/cai-watchdog.conf"
};
if !Path::new(cfg_file).exists() {
println!("Error! Can't find configuration file.");
println!("Exiting...");
std::process::exit(exitcode::CONFIG);
}
let cfg = ini!(cfg_file);
let check_interval = cfg["main"]["check_interval"].clone().unwrap().parse::<u64>().unwrap() * 1000;