C'est pas directement la solution que je te donne, mais j'ai mis en ligne il
y a quelques temps une MFC (My Frequently Commands) pour MySQL. Tu y
trouveras peut-être quelques pistes.

http://www.tla.ch/TLA/NEWS/2006mysql/2006-mysql-faq-commands.htm

Salutations amicales

Christian ALT

Telecom and Logistics Associates
Network Security Company
ISO 27001 Lead Auditor
http://www.tla.ch

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of J-A Eberhard - Open Net Sàrl
Sent: lundi, 9. octobre 2006 21:00
To: [email protected]
Subject: [gull] Script pour restarter mysql

Bonjour,

Je cherche un petit script qui regarde si un process est live et qui le
restart si ce n'est pas le cas.

Concrétement, sur un box debian, je veux vérifier si mysql tourne et sinon
lancer un /etc/init.d/mysql start

Je pense qu'il faut regarder si il y a un pid pour mysql mais je ne connais
pas la syntaxe et ne trouve pas d'exemple de ce genre de script.

Merci de votre aide.

Jacques-andré


_______________________________________________
gull mailing list
[email protected]
http://lists.alphanet.ch/mailman/listinfo/gull

_______________________________________________
gull mailing list
[email protected]
http://lists.alphanet.ch/mailman/listinfo/gull

Répondre à