docs/Service_install hinzugefügt
This commit is contained in:
parent
95fade502d
commit
debb138b00
33
docs/Service_install
Normal file
33
docs/Service_install
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
Das ist eine systemd Service-Datei. Installation:
|
||||
|
||||
```bash
|
||||
# Service-Datei kopieren
|
||||
sudo cp meshdd-bot.service /etc/systemd/system/
|
||||
|
||||
# systemd neu laden
|
||||
sudo systemctl daemon-reload
|
||||
|
||||
# Service aktivieren (autostart beim Boot)
|
||||
sudo systemctl enable meshdd-bot
|
||||
|
||||
# Service jetzt starten
|
||||
sudo systemctl start meshdd-bot
|
||||
|
||||
# Status prüfen
|
||||
sudo systemctl status meshdd-bot
|
||||
```
|
||||
|
||||
Nützliche Befehle danach:
|
||||
|
||||
```bash
|
||||
# Logs anzeigen
|
||||
journalctl -u meshdd-bot -f
|
||||
|
||||
# Service neu starten
|
||||
sudo systemctl restart meshdd-bot
|
||||
|
||||
# Service stoppen
|
||||
sudo systemctl stop meshdd-bot
|
||||
```
|
||||
|
||||
Der `enable`-Befehl sorgt dafür, dass der Service automatisch bei jedem Systemstart gestartet wird.
|
||||
Loading…
Reference in a new issue