RisksY
RisksY

Reputation: 33

Sh script to attach to existing screen and use command

I have a process running in a screen. I attach it via:

screen -x root/sc_name

And I need to stop this process from this screen using stop command. You don't execute command on Linux terminal, it has own terminal like mysql>.

I want to stop it because I will take a backup. While it's not stopped, back up process can be bugged (the process is a Minecraft server).

Upvotes: 0

Views: 169

Answers (1)

mtnezm
mtnezm

Reputation: 1027

You might consider setting up Minecraft server as Systemd service, so you can easily stop the process, create your backup and get it running again after that process finishes.

Upvotes: 1

Related Questions