Pages : 1
#1 Le 25/04/2008, à 11:44
- haydenstrauss
Impossible de lancer un executable
Bonjour,
Je suis sur un serveur et je voudrais lancer un jeu en réseaux.
Pour cela il faut que je fasse ./athena-start start
Voila le script de athena-start :
#!/bin/sh
# athena starting script by rowla
# modified by shazeya@syafi.com (NL101541)
PATH=./:$PATH
L_SRV=login-server_sql
C_SRV=char-server_sql
M_SRV=map-server_sql
print_start() {
# more << EOF
echo "Athena Starting..."
echo " (c) 2003 Athena Project"
echo " modified by shazeya@syafi.com"
echo ""
#echo "Debug informations will appear,"
#echo "since this is a test release."
#echo ""
echo "checking..."
#EOF
}
check_files() {
for i in ${L_SRV} ${C_SRV} ${M_SRV}
do
if [ ! -f ./$i ]; then
echo "$i does not exist, or can't run."
echo "Stop. Check your compile."
exit 1;
fi
done
# more << EOF
echo "Check complete."
echo "Looks good, a nice Athena!"
#EOF
}
case $1 in
'start')
print_start
check_files
exec ./${L_SRV}&
exec ./${C_SRV}&
exec ./${M_SRV}&
echo "Now Started Athena."
;;
'stop')
ps ax | grep -E "${L_SRV}|${C_SRV}|${M_SRV}" | awk '{print $1}' | xargs kill
;;
'restart')
$0 stop
$0 start
;;
*)
echo "Usage: athena-start { start | stop | restart }"
;;
esac
Et quand je le lance voila réponse:
Athena Starting...
© 2003 Athena Project
modified by shazeya@syafi.com
checking...
Check complete.
Looks good, a nice Athena!
./athena-start: line 47: /home/ragnarok/RO/login-server_sql: Aucun fichier ou répertoire de ce type
./athena-start: line 47: /home/ragnarok/RO/login-server_sql: Succès
./athena-start: line 48: /home/ragnarok/RO/char-server_sql: Aucun fichier ou répertoire de ce type
./athena-start: line 48: /home/ragnarok/RO/char-server_sql: Succès
./athena-start: line 49: /home/ragnarok/RO/map-server_sql: Aucun fichier ou répertoire de ce type
./athena-start: line 49: /home/ragnarok/RO/map-server_sql: Succès
Now Started Athena.
J'ai bien fait un chmod 777 sur :
ogin-server_sql
char-server_sql
map-server_sql
athena-start
A savoir que j'ai un autre serveur ou j'ai fait la mêmechose et ça marche (donc ce n'est pas un probleme du jeu)
Je ne comprend pas pourquoi il dit "aucun fichier ou repertoire de ce type" alors qu'ils y sont bien.
Je peux meme lancer les trois fichier un par un et ça repond la meme chose.
Merci
Hors ligne
#2 Le 25/04/2008, à 11:51
- Beamo-fr
Re : Impossible de lancer un executable
Ce n'est pas parce que tes fichiers se nomment login-server.sql et pas login-server_sql ?
fait un ls /home/ragnarok/RO/
Tu y trouves bien tes fichiers ?
Que ce passe-t-il si a la main tu tente de lancer /home/ragnarok/RO/login-server_sql
Beamo
#3 Le 25/04/2008, à 12:22
- haydenstrauss
Re : Impossible de lancer un executable
root@sd-14046:/home/ragnarok/RO# ls
athena-start config.log eAthena-6.dsw LICENCE_JA Makefile.in online.html save vcproj-6
Changelog-Stable.txt config.status eAthena-7.1.sln log map-server online.txt save-tmpl vcproj-7.1
char-server configure eAthena-8.sln login-server map-server.sh pcre3.dll sql-files vcproj-8
char-server.sh configure.in lib login-server.sh map-server_sql plugins src zlib1.dll
char-server_sql db libmysql.dll login-server_sql notice.txt readme start
conf doc LICENCE Makefile npc readme.html tools
Et si je lance a la main c'est pareil:
root@sd-14046:/home/ragnarok/RO# ./login-server_sql
-bash: ./login-server_sql: Aucun fichier ou répertoire de ce type
Si je met un chmod 777 sur login_server_sql et pas sur les autre ça donne:
root@sd-14046:/home/ragnarok/RO# ./athena-start start
Athena Starting...
(c) 2003 Athena Project
modified by shazeya@syafi.com
checking...
Check complete.
Looks good, a nice Athena!
./athena-start: line 47: /home/ragnarok/RO/login-server_sql: Aucun fichier ou répertoire de ce type
./athena-start: line 47: /home/ragnarok/RO/login-server_sql: Succès
./athena-start: line 48: /home/ragnarok/RO/char-server_sql: Permission non accordée
./athena-start: line 48: exec: /home/ragnarok/RO/char-server_sql : impossible d'exécuter : Succès
./athena-start: line 49: /home/ragnarok/RO/map-server_sql: Permission non accordée
./athena-start: line 49: exec: /home/ragnarok/RO/map-server_sql : impossible d'exécuter : Succès
Now Started Athena.
ça me fait exactement la eme chose pour lancer teamspeak.
root@sd-14046:/home/teamspeak# ./teamspeak2-server_startscript start
WARNING ! For security reasons we advise: DO NOT RUN THE SERVER AS ROOT
!!!!!!!!!!!
starting the teamspeak2 server
./teamspeak2-server_startscript: line 29: ./server_linux: Aucun fichier ou répertoire de ce type
root@sd-14046:/home/teamspeak#
Dernière modification par haydenstrauss (Le 25/04/2008, à 12:44)
Hors ligne
#4 Le 25/04/2008, à 13:50
- Beamo-fr
Re : Impossible de lancer un executable
Tu n'aurais pas SELinux d'installé et utilisé ?
Tu peux faire un ls -l du répertoire ?
Beamo
#5 Le 25/04/2008, à 14:02
- haydenstrauss
Re : Impossible de lancer un executable
root@sd-14046:/home/ragnarok/RO# ls -l
total 11040
-rw-r--r-- 1 root root 16139 2008-04-25 13:25 atcommand_athena.conf
-rwxrwxrwx 1 root root 1172 2008-04-25 13:25 athena-start
-rw-r--r-- 1 root root 305776 2008-04-25 13:25 Changelog-Stable.txt
-rw-r--r-- 1 root root 694400 2008-04-25 13:25 char-server
-rw-r--r-- 1 root root 266 2008-04-25 13:25 char-server.sh
-rwxrwxrwx 1 root root 729298 2008-04-25 13:25 char-server_sql
drwxr-xr-x 7 root root 4096 2008-04-25 13:28 conf
-rw-r--r-- 1 root root 16264 2008-04-25 13:28 config.log
-rw-r--r-- 1 root root 22081 2008-04-25 13:28 config.status
-rw-r--r-- 1 root root 177087 2008-04-25 13:28 configure
-rw-r--r-- 1 root root 9876 2008-04-25 13:28 configure.in
drwxr-xr-x 3 root root 4096 2008-04-25 13:32 db
drwxr-xr-x 3 root root 4096 2008-04-25 13:32 doc
-rw-r--r-- 1 root root 1602 2008-04-25 13:32 eAthena-6.dsw
-rw-r--r-- 1 root root 3560 2008-04-25 13:32 eAthena-7.1.sln
-rw-r--r-- 1 root root 8858 2008-04-25 13:33 eAthena-8.sln
drwxr-xr-x 2 root root 4096 2008-04-25 13:33 lib
-rw-r--r-- 1 root root 1449984 2008-04-25 13:33 libmysql.dll
-rw-r--r-- 1 root root 18349 2008-04-25 13:33 LICENCE
-rw-r--r-- 1 root root 21770 2008-04-25 13:33 LICENCE_JA
drwxr-xr-x 2 root root 4096 2008-04-25 13:33 log
-rw-r--r-- 1 root root 494580 2008-04-25 13:33 login-server
-rw-r--r-- 1 root root 267 2008-04-25 13:33 login-server.sh
-rwxrwxrwx 1 root root 466784 2008-04-25 13:33 login-server_sql
-rw-r--r-- 1 root root 5838 2008-04-25 13:33 Makefile
-rw-r--r-- 1 root root 5857 2008-04-25 13:33 Makefile.in
-rw-r--r-- 1 root root 3312575 2008-04-25 13:34 map-server
-rw-r--r-- 1 root root 264 2008-04-25 13:34 map-server.sh
-rwxrwxrwx 1 root root 3426772 2008-04-25 13:35 map-server_sql
-rw-r--r-- 1 root root 603 2008-04-25 13:35 notice.txt
drwxr-xr-x 17 root root 4096 2008-04-25 13:52 npc
Tu n'aurais pas SELinux d'installé et utilisé ?
heu je ne saispas je suis sur dediboc j'ai demander une installation ubuntu serveur 64bits
Hors ligne
#6 Le 25/04/2008, à 14:30
- Beamo-fr
Re : Impossible de lancer un executable
Et donc pas de SELinux d'installé ? (ce ne serait pas une RH ou une Fedora ?)
Par contre tu peux aussi vérifier les permissions du dossier /home/ragnarok.
Je crois que pour certaines distrib il est par défaut setté à 700 alors qu'il te faudrait probablement un 755.
Beamo
#7 Le 25/04/2008, à 14:39
- haydenstrauss
Re : Impossible de lancer un executable
C'est bon ça marche c'est parce que j'étais en 64 bits et en 32 ça marche
Merci
Hors ligne
#8 Le 25/04/2008, à 14:52
- Beamo-fr
Re : Impossible de lancer un executable
?-_-?
Bah tant mieux
Beamo
Pages : 1