Run PhoneInfoga as a systemd service: ===================================== 1. Get (or build) Phoneinfoga and install it to the /opt/phoneinfoga directory. Get it here: https://github.com/sundowndev/phoneinfoga 2. First, create the /etc/systemd/system/phoneinfoga.service file and add this contents: [Unit] Description=Start phoneinfoga After=network.target [Service] Type=simple ExecStart=/opt/phoneinfoga/boot-phoneinfoga.sh TimeoutStartSec=0 [Install] WantedBy=default.target Then save using Ctrl+X. -------------------------------------------------------- 3. mark it as executable by: sudo chmod +x /etc/systemd/system/phoneinfoga.service ------------------------------------------------------------------------------------------------- 4. create the /opt/phoneinfoga/boot-phoneinfoga.sh file and add this contents using nano: #!/bin/bash /opt/phoneinfoga/phoneinfoga serve -p 1997 Then save using Ctrl+X. ------------------------------------------------------------ 5. mark it as executable by: sudo chmod +x /opt/phoneinfoga/boot-phoneinfoga.sh ------------------------------------------------------------- 6. Reload systemd demond by: sudo systemctl daemon-reload ------------------------------------------------------------ 7. Enable and start phoneinfoga web server systemd by: sudo systemctl enable phoneinfoga.service sudo systemctl start phoneinfoga.service You now got a fully automated / background phoneinfoga server! Source: https://branden-g.ca/Notes/Tech-Help/Linux-Repair/Linux-Settings-Changes/Ubuntu-Server/Run-Minecraft-server-as-a-systemd-background-service.txt https://www.youtube.com/watch?v=MeIX9iD7n84 Date: August 15th 2024.