Bootstrap Framework 3.3.6

Over a dozen reusable components built to provide iconography, dropdowns, input groups, navigation, alerts, and much more...

Publish your tools and modifications here.
#11678
Getestet auf Ubuntu 24.04 / Tested on Ubuntu 24.04

Image Dieses Script startet den TS3Musicbot als Systemdienst mit automatischen Restart nach 5 Sekunden falls er mal abschmiert
Als erstes legen wir mit sudo eine neue Datei ts3musicbot.service an in /etc/systemd/system/
Image This script starts the TS3Musicbot as a system service with automatic restart after 5 seconds if it crashes
First, we create a new file ts3musicbot.service with sudo in /etc/systemd/system/
Code: Select all
sudo nano /etc/systemd/system/ts3musicbot.service

Image Füge der Datei den folgenden Inhalt hinzu und passe ihn mit den spezifischen Details Deines Bots an und speicher die Datei mit STRG+X -> Y -> Enter
Image Add the following content to the file, customizing it with your bot's specific details and save the file with CTRL+X -> Y -> Enter

Code: Select all
[Unit]
Description=TS3MusicBot Service
After=network.target

[Service]
User=your_user
ExecStart=/path/to/ts3musicbot/TS3MusicBot_runscript.sh -account your@mail.de -port 8081 -webif-pw Your_Admin_Password -webif-pw-user Your_User_Password -max-disk-space 500
Restart=on-failure
RestartSec=5

[Install]
WantedBy=multi-user.target


Image Jetzt folgende Befehle nacheinander ausführen
Image Now execute the following commands one after the other
Code: Select all
sudo systemctl daemon-reload
sudo systemctl enable ts3musicbot.service

Image Jetzt habt ihr es geschafft. Startet den Bot mit folgendem Befehl
Image Now you've done it. Start the bot with the following command

Code: Select all
sudo systemctl start ts3musicbot

Image Wenn ihr die Pfade und die Daten richig eingegeben habt, läuft der Bot nun. Mit "sudo systemctl status ts3musicbot" könnt ihr überprüfen ob der Service läuft. Bei einem Absturz startet der Service sich nach 5 Sekunden neu. Mit "-max-disk-space 500" Gebt ihr die maximale Größe des verfügbaren Webspaces in MB für Musikdateien an
Wenn ihr das Webinterface zusätzlich mit SSL gesichert habt wie hier beschrieben: Secure Webinterface dann hängt hinter "-max-disk-space 1000" noch " -secure /etc/TS3MusicBot/TS3MusicBot_secured.jks -secure-pw Your_Password" dran. Die Zeile würde dann so ausehen:
Image If you entered the paths and data correctly, the bot is now running. You can check if the service is running with "sudo systemctl status ts3musicbot." If it crashes, the service will restart after 5 seconds. With "-max-disk-space 500" you specify the maximum size of the available web space in MB for music files.
If you have additionally secured the web interface with SSL as described here: Secure Web Interface, then add "-secure /etc/TS3MusicBot/TS3MusicBot_secured.jks -secure-pw Your_Password" after "-max-disk-space 1000". The line would then look like this:
Code: Select all
ExecStart=/path/to/ts3musicbot/TS3MusicBot_runscript.sh -account your@mail.de -port 8081 -webif-pw Your_Admin_Password -webif-pw-user Your_User_Password -max-disk-space 1000 -secure /etc/TS3MusicBot/TS3MusicBot_secured.jks -secure-pw Your_Password

Frage zu einem 2ten Bot

Hallo, wenn man 2 TS3 bots auf denselben discord […]

Cover

Hallo, Wird es noch eine Möglichkeit geben d[…]

Getestet auf Ubuntu 24.04 / Tested on Ubuntu 24.[…]

update stopped

ich kann machen was ich will, das tmp verzeichniss[…]

Swap-in out addons, use only what you really need!