Ahtenus / minecraft-init

Init script for minecraft and bukkit servers
404 stars 125 forks source link

Avoid corrupting pid file when screen -list resturns extra lines #158

Closed joe-mojo closed 10 years ago

joe-mojo commented 10 years ago

My screen -list command return one extra line like "1 socket[...]/S-minecraft" Because grep catch "minecraft", this line is kept and "1" is appended to the real pid ! Piping with "head -n 1" and it's done.