mirror of
http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/opsec-blogposts.git
synced 2025-06-08 18:19:32 +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:
|
||||
|
||||
## /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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue