systemd bit improvement

This commit is contained in:
MulliganSecurity 2025-06-05 11:01:54 +02:00
parent f0d4ccfcd4
commit 6123ce743a

View file

@ -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: To turn the simplex-chat and the alerter into systemd services, you only need to create two files:
## /etc/systemd/system/simplex-chat.service ## /etc/systemd/system/simplex-chat.service
```text
vim /etc/systemd/system/simplex-chat.service
cat /etc/systemd/system/simplex-chat.service
```
[Unit] [Unit]
Requires=tor.service 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 ## /etc/systemd/system/alerter.service
```text
vim /etc/systemd/system/alerter.service
cat /etc/systemd/system/xxx
```
[Unit] [Unit]
Requires=simplex-chat.service 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 ## Enable the services
Now enable the services Now enable the services
sudo systemctl enable simplex-chat.service sudo systemctl daemon-reload
sudo systemctl enable alerter.service sudo systemctl enable --now simplex-chat.service
sudo systemctl enable --now alerter.service
# Conclusion # Conclusion