launch-minecraf-server { Ajout : passage automatique en arrière-plan du serveur ; nom de la session screen }
This commit is contained in:
parent
653d038624
commit
56043c8cd5
1 changed files with 2 additions and 1 deletions
|
@ -1,7 +1,8 @@
|
|||
#!/bin/sh -e
|
||||
cd /srv/minecraft/bin
|
||||
if [ -f "$1" ]; then
|
||||
sudo -u minecraft screen "./${1}"
|
||||
sudo -u minecraft screen -d -m -S "Serveur Minecraft : ${1}" \
|
||||
"./${1}"
|
||||
else
|
||||
>&2 echo "Le serveur \"${1}\" n'existe pas."
|
||||
false
|
||||
|
|
Loading…
Reference in a new issue