diff --git a/systemd/minecraft.service b/systemd/minecraft.service deleted file mode 100644 index d100f53..0000000 --- a/systemd/minecraft.service +++ /dev/null @@ -1,23 +0,0 @@ -[Unit] -Description=Minecraft Server -After=network.target - -[Service] -# Replace the following with correct values -ExecStart=/bin/bash /home/ubuntu/mc/start.sh -User=ubuntu -Group=ubuntu -WorkingDirectory=/home/ubuntu/mc -ExecStop=/bin/sh -c "echo stop > /home/ubuntu/mc/minecraft.control" -KillSignal=SIGCONT - -Sockets=minecraft.socket -StandardInput=socket -StandardOutput=journal -StandardError=journal - -Restart=on-failure -RestartSec=60s - -[Install] -WantedBy=multi-user.target \ No newline at end of file diff --git a/systemd/minecraft.socket b/systemd/minecraft.socket deleted file mode 100644 index 97d0d58..0000000 --- a/systemd/minecraft.socket +++ /dev/null @@ -1,10 +0,0 @@ -[Unit] -BindsTo=minecraft.service - -[Socket] -# Replace the following with correct values -ListenFIFO=/home/ubuntu/mc/minecraft.control -RemoveOnStop=true -SocketMode=0660 -SocketUser=ubuntu -SocketGroup=ubuntu \ No newline at end of file