Erato edentula

Erato edentula is a species of small sea snail, a marine gastropod mollusc in the family Triviidae, the false cowries or trivias.[2]

Erato edentula
Scientific classification
Kingdom:
Phylum:
Class:
(unranked):
Superfamily:
Family:
Subfamily:
Genus:
Species:
E. edentula
Binomial name
Erato edentula
Bozzetti, 2009[1]

Description

Distribution

gollark: I have DashMap in here because of some vague dream of concurrently doing... stuff.
gollark: ```rustuse std::process::Command;use anyhow::Result;use std::path::Path;use std::fs;#[derive(serde::Serialize, serde::Deserialize, Debug)]struct RawServiceSpec { command: String, args: Vec<String>, name: Option<String>}#[derive(Debug)]struct ServiceSpec { command: String, args: Vec<String>, name: String}fn load_spec(path: &Path) -> Result<ServiceSpec> { let file = fs::read_to_string(path)?; let raw: RawServiceSpec = toml::from_str(&file)?; Ok(ServiceSpec { command: raw.command, args: raw.args, name: path.file_stem().unwrap().to_string_lossy().to_string() })}fn run_service(serv: ServiceSpec) -> Result<()> { println!("thread {:?}", serv); loop { println!("Starting"); let mut child = Command::new("/bin/env") .arg("python3") .arg("test.py") .spawn()?; child.wait()?; } Ok(())}fn main() -> Result<()> { let services = dashmap::DashMap::new(); for entry in fs::read_dir("./services")? { let s = load_spec(&entry?.path())?; services.insert(s.name.clone(), s); } let mut handles = Vec::new(); for e in services { handles.push(std::thread::spawn(|| run_service(e.1))); } for handle in handles { handle.join().unwrap(); } Ok(())}```
gollark: Well, I guess that's systemd replaced.
gollark: I can define a service in a TOML file and it's automatically restarted on exit and all.
gollark: So it does actually work now.

References

  1. Bozzetti (2009). Malacologia Mostra Mondiale 65 (4) : 30. World Register of Marine Species, Retrieved 9 July 2010.
  2. Erato edentula Bozzetti, 2009. WoRMS (2010). Erato edentula Bozzetti, 2009. In: Bouchet, P.; Gofas, S.; Rosenberg, G. (2010) World Marine Mollusca database. Accessed through: World Register of Marine Species at http://www.marinespecies.eu/aphia.php?p=taxdetails&id=456984 on 9 July 2010 .


This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.