aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorHimbeerserverDE <himbeerserverde@gmail.com>2022-12-28 18:18:25 +0100
committerHimbeerserverDE <himbeerserverde@gmail.com>2022-12-28 18:18:25 +0100
commitc4a7e74809273453be4cf4ca04c0f94abcf9b7bc (patch)
tree128714d591fa95d4efd60078325177315c465cbd /src/main.rs
parentd943912dbc62cc314d2d739f08be501ba64c7dcd (diff)
don't start self
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 8bd9cf0..0cbfc4a 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -17,6 +17,10 @@ fn start() -> anyhow::Result<()> {
.into_string()
.expect("invalid unicode in file name");
+ if service_name == "init" {
+ continue;
+ }
+
match Command::new(service.path()).spawn() {
Ok(_) => {
stdout.set_color(ColorSpec::new().set_fg(Some(Color::Green)))?;