From 6123ce743a0de083748d0b006d5130ed42030e51 Mon Sep 17 00:00:00 2001 From: MulliganSecurity Date: Thu, 5 Jun 2025 11:01:54 +0200 Subject: [PATCH] systemd bit improvement --- simplexalerts/index.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/simplexalerts/index.md b/simplexalerts/index.md index efba6d6..9827d08 100644 --- a/simplexalerts/index.md +++ b/simplexalerts/index.md @@ -355,6 +355,10 @@ And here's the alert: To turn the simplex-chat and the alerter into systemd services, you only need to create two files: ## /etc/systemd/system/simplex-chat.service +```text + vim /etc/systemd/system/simplex-chat.service + cat /etc/systemd/system/simplex-chat.service +``` [Unit] Requires=tor.service @@ -366,6 +370,11 @@ To turn the simplex-chat and the alerter into systemd services, you only need to ## /etc/systemd/system/alerter.service +```text +vim /etc/systemd/system/alerter.service +cat /etc/systemd/system/xxx +``` + [Unit] Requires=simplex-chat.service @@ -379,9 +388,9 @@ To turn the simplex-chat and the alerter into systemd services, you only need to ## Enable the services Now enable the services - sudo systemctl enable simplex-chat.service - sudo systemctl enable alerter.service - + sudo systemctl daemon-reload + sudo systemctl enable --now simplex-chat.service + sudo systemctl enable --now alerter.service # Conclusion