Sanae6 / SmoOnlineServer

Official server for Super Mario Odyssey: Online
https://discord.gg/jYCueK2BqD
108 stars 27 forks source link

Feature Request: A way to "rcon" into the systemd service #26

Closed Melechtna closed 2 years ago

Melechtna commented 2 years ago

Title says it all, there's no way to send commands to the systemd service locally or remotely.

piplup55 commented 2 years ago

being looked into, for now you can use a discord bot for commands

Melechtna commented 2 years ago

I managed to get this half working this way

create the needed input file mkfifo input

Needs a script to attach to the process #!/bin/sh tail -f /home/user/SMOServer/input| /home/user/SMOServer/Server Then replacing the sh as the executable in the service file and can then write to it using echo "send cap 0 1 user" > ./input

most of these assuming you're already in the SMOServer directory. It's inelegant and lacks a proper way to pipe in and get output, but hopefully that'll help someone in the right direct.

piplup55 commented 2 years ago

@Melechtna could you try https://github.com/Sanae6/SmoOnlineServer/pull/27 it should have the feature now