mirror of
http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/opsec-blogposts.git
synced 2025-06-08 16:09:33 +00:00
systemd bit improvement
This commit is contained in:
parent
f0d4ccfcd4
commit
6123ce743a
1 changed files with 12 additions and 3 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue