[gull] Script pour restarter mysql

Christian ALT calt at tla.ch
Tue Oct 10 11:07:58 CEST 2006


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: gull-bounces at lists.alphanet.ch [mailto:gull-bounces at lists.alphanet.ch]
On Behalf Of J-A Eberhard - Open Net Sàrl
Sent: lundi, 9. octobre 2006 21:00
To: gull at lists.alphanet.ch
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
gull at lists.alphanet.ch
http://lists.alphanet.ch/mailman/listinfo/gull




More information about the gull mailing list