crontab -e
* * * * * /home/guillaume/medor
lundi 25 juin 2012, 20:00:37 (UTC+0200) MEDOR: not running. Retarting
lundi 25 juin 2012, 20:07:01 (UTC+0200) MEDOR: not running...WOUF WOUF... Restarting
lundi 25 juin 2012, 20:08:01 (UTC+0200) MEDOR: not running...WOUF WOUF... Restarting
lundi 25 juin 2012, 20:09:02 (UTC+0200) MEDOR: not running...WOUF WOUF... Restarting
lundi 25 juin 2012, 20:10:01 (UTC+0200) MEDOR: not running...WOUF WOUF... Restarting
lundi 25 juin 2012, 20:11:01 (UTC+0200) MEDOR: not running...WOUF WOUF... Restarting
lundi 25 juin 2012, 20:12:01 (UTC+0200) MEDOR: not running...WOUF WOUF... Restarting
lundi 25 juin 2012, 20:13:01 (UTC+0200) MEDOR: not running...WOUF WOUF... Restarting
lundi 25 juin 2012, 20:14:01 (UTC+0200) MEDOR: not running...WOUF WOUF... Restarting
lundi 25 juin 2012, 20:15:01 (UTC+0200) MEDOR: not running...WOUF WOUF... Restarting
lundi 25 juin 2012, 20:16:01 (UTC+0200) MEDOR: not running...WOUF WOUF... Restarting
lundi 25 juin 2012, 20:17:01 (UTC+0200) MEDOR: not running...WOUF WOUF... Restarting
lundi 25 juin 2012, 20:18:01 (UTC+0200) MEDOR: not running...WOUF WOUF... Restarting
lundi 25 juin 2012, 20:19:01 (UTC+0200) MEDOR: not running...WOUF WOUF... Restarting
lundi 25 juin 2012, 20:20:01 (UTC+0200) MEDOR: not running...WOUF WOUF... Restarting
lundi 25 juin 2012, 20:21:01 (UTC+0200) MEDOR: not running...WOUF WOUF... Restarting
lundi 25 juin 2012, 20:22:01 (UTC+0200) MEDOR: not running...WOUF WOUF... Restarting
lundi 25 juin 2012, 20:23:01 (UTC+0200) MEDOR: not running...WOUF WOUF... Restarting
lundi 25 juin 2012, 20:24:01 (UTC+0200) MEDOR: not running...WOUF WOUF... Restarting
lundi 25 juin 2012, 20:25:01 (UTC+0200) MEDOR: not running...WOUF WOUF... Restarting
lundi 25 juin 2012, 20:26:01 (UTC+0200) MEDOR: not running...WOUF WOUF... Restarting
lundi 25 juin 2012, 20:27:01 (UTC+0200) MEDOR: not running...WOUF WOUF... Restarting
lundi 25 juin 2012, 20:28:01 (UTC+0200) MEDOR: not running...WOUF WOUF... Restarting
lundi 25 juin 2012, 20:29:01 (UTC+0200) MEDOR: not running...WOUF WOUF... Restarting
lundi 25 juin 2012, 20:30:01 (UTC+0200) MEDOR: not running...WOUF WOUF... Restarting
lundi 25 juin 2012, 20:31:01 (UTC+0200) MEDOR: not running...WOUF WOUF... Restarting
lundi 25 juin 2012, 20:32:01 (UTC+0200) MEDOR: not running...WOUF WOUF... Restarting
lundi 25 juin 2012, 20:33:01 (UTC+0200) MEDOR: not running...WOUF WOUF... Restarting
lundi 25 juin 2012, 20:34:01 (UTC+0200) MEDOR: not running...WOUF WOUF... Restarting
lundi 25 juin 2012, 20:35:01 (UTC+0200) MEDOR: not running...WOUF WOUF... Restarting
lundi 25 juin 2012, 20:36:01 (UTC+0200) MEDOR: not running...WOUF WOUF... Restarting
lundi 25 juin 2012, 20:37:01 (UTC+0200) MEDOR: not running...WOUF WOUF... Restarting
!/bin/bash
#medor
num=$(pidof [b]minetestserverd[/b])
if [ -z "$num" ]
then
/etc/init.d/minetestserverd start
DATE=$(date)
echo $DATE MEDOR: $num not running...WOUF WOUF... Restarting >>/home/guillaume/medor_log.txt
fi
num=$(pidof minetestserverd)
num=$(pidof minetestserver)
turbogus wrote:A hmsintrepide : je vois demain pour la modification du script pour t'envoyer les 3 valeurs !
Dim sw as new stremwriter(".../.../www/index.html")
If not pidof = "" Then
sw.write("0")
Else
sw.write("1")
End If
sw.close()
sleep 60 // repos de 60 seconde par exemple pour ne pas saturer le serveur
!/bin/bash
#medor
num=$(pidof [b]minetestserverd[/b])
if [ -z "$num" ]
then
echo "0" > /.../www/index.html
/etc/init.d/minetestserverd start
DATE=$(date)
echo $DATE MEDOR: $num not running...WOUF WOUF... Restarting >>/home/guillaume/medor_log.txt
else
echo "1" > /.../www/index.html
fi
car il y aura jamais 0
Jat wrote:Si linux crash faudrait juste faire un test de ping et si il crash il aura pas le temp t'envoier un rapport..
Plus tard .... Il peuvent déja écrire dans des fichier les mods.
Le lua est un language de programmation pas un language de bonobo :p
Jat wrote:@turbogus: regarde tes émail.
J'aimerai faire un syteme téléportation. Un peu a la stargate...
Pour pouvoir se téléporte il y aura 10 symbole (la je bloque) et on en utilisera que 3 ou 4.
3= 1 000 porte
4= 10 000 porte
Donc il me faudrait une idée pour les 10 symboles.
Par exemple la ville je suis entrain faire un dessin de cobble + obsidian + glass + lave (c'est un exemple car j'ai vraiment pas d'idée :p)
J'aimerai faire un syteme téléportation. Un peu a la stargate...
Jat wrote:Le numéro sera a 4 symbole et 10 symbole pour le clavier
if($propriétaire=$joueur_qui_casse_un_bloc_dans_la_zone || $admin=$joueur_qui_casse_un_bloc_dans_la_zone)
{
//drop le bloc
}
else
{
//ne drop pas et affiche un message sur le tchat
}
//Ecrit dans un fichier data les coordonné avec le pseudo du propriétaire.
//La commande "/sethome <pseudo> <xa,ya> <xb,yb>"
//Pour supprimer
//La commande "/rmhome <pseudo> <xa,ya> <xb,yb>"
//Pour afficher les coordonné exacte
//La commande "/lshome <pseudo>"
Users browsing this forum: No registered users and 21 guests