mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-31 04:23:40 +00:00
remove overload restart rule
This commit is contained in:
committed by
Matt Hill
parent
3137387c0c
commit
26ddf769b1
@@ -39,9 +39,6 @@ enum ErrorLogSeverity {
|
|||||||
|
|
||||||
lazy_static! {
|
lazy_static! {
|
||||||
static ref LOG_REGEXES: Vec<(Regex, ErrorLogSeverity)> = vec![(
|
static ref LOG_REGEXES: Vec<(Regex, ErrorLogSeverity)> = vec![(
|
||||||
Regex::new("Most likely this means the Tor network is overloaded").unwrap(),
|
|
||||||
ErrorLogSeverity::Unknown { wipe_state: true }
|
|
||||||
),(
|
|
||||||
Regex::new("This could indicate a route manipulation attack, network overload, bad local network connectivity, or a bug\\.").unwrap(),
|
Regex::new("This could indicate a route manipulation attack, network overload, bad local network connectivity, or a bug\\.").unwrap(),
|
||||||
ErrorLogSeverity::Unknown { wipe_state: true }
|
ErrorLogSeverity::Unknown { wipe_state: true }
|
||||||
),(
|
),(
|
||||||
@@ -281,6 +278,14 @@ async fn torctl(
|
|||||||
.arg("tor")
|
.arg("tor")
|
||||||
.invoke(ErrorKind::Tor)
|
.invoke(ErrorKind::Tor)
|
||||||
.await?;
|
.await?;
|
||||||
|
while Command::new("pidof")
|
||||||
|
.arg("tor")
|
||||||
|
.invoke(ErrorKind::Tor)
|
||||||
|
.await
|
||||||
|
.is_ok()
|
||||||
|
{
|
||||||
|
tokio::time::sleep(Duration::from_secs(1)).await;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Command::new("systemctl")
|
Command::new("systemctl")
|
||||||
.arg("start")
|
.arg("start")
|
||||||
|
|||||||
Reference in New Issue
Block a user