2022-07-01 18:10:15 +00:00
|
|
|
[Unit]
|
|
|
|
Description="Super Mario Odyssey Multiplayer Server"
|
|
|
|
After=network.target
|
|
|
|
StartLimitIntervalSec=0
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
# Uncommnt User to run under a different user
|
|
|
|
# User=user
|
|
|
|
# change ExecStart to the path of the server file
|
|
|
|
ExecStart="/home/user/SMOServer/Server"
|
|
|
|
# change WorkingDirectory to the folder of your server
|
|
|
|
WorkingDirectory=/home/user/SMOServer/
|
|
|
|
# ensure the service restarts after crashing
|
|
|
|
Restart=always
|
|
|
|
# amount of time to wait before restarting the service
|
|
|
|
RestartSec=5
|
2022-08-01 06:57:41 +00:00
|
|
|
#TTY Input
|
|
|
|
StandardInput=tty-force
|
|
|
|
TTYVHangup=yes
|
|
|
|
TTYPath=/dev/tty20
|
|
|
|
TTYReset=yes
|
2022-07-01 18:10:15 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|