# /etc/systemd/system/pong_bot.service # sudo systemctl daemon-reload # sudo systemctl start pong_bot.service [Unit] Description=PONG-BOT After=network.target [Service] WorkingDirectory=/dir/ ExecStart=/usr/bin/bash /dir/launch.sh pong # Disable Python's buffering of STDOUT and STDERR, so that output from the # service shows up immediately in systemd's logs Environment=PYTHONUNBUFFERED=1 Restart=on-failure Type=notify #try simple if any problems [Install] WantedBy=default.target