From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1630 Path: news.gmane.org!not-for-mail From: Vincent Danen Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: using runit as init Date: Sun, 13 Jan 2008 20:55:35 -0700 Message-ID: <20080114035535.GR41886@linsec.ca> References: <200801032151.21524.list-supervision@augensalat.de> <200801131128.53994.mike@geekgene.com> <200801131149.58585.mike@geekgene.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="7quVE/NlH+cK1xMR" X-Trace: ger.gmane.org 1200282959 1488 80.91.229.12 (14 Jan 2008 03:55:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Jan 2008 03:55:59 +0000 (UTC) Cc: supervision@list.skarnet.org To: Mike Buland Original-X-From: supervision-return-1865-gcsg-supervision=m.gmane.org@list.skarnet.org Mon Jan 14 04:56:21 2008 Return-path: Envelope-to: gcsg-supervision@gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by lo.gmane.org with smtp (Exim 4.50) id 1JEGQv-0001gU-ND for gcsg-supervision@gmane.org; Mon, 14 Jan 2008 04:56:21 +0100 Original-Received: (qmail 17411 invoked by uid 76); 14 Jan 2008 03:56:04 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Archive: Original-Received: (qmail 17405 invoked from network); 14 Jan 2008 03:56:00 -0000 X-URL: http://linsec.ca/ In-reply-to: <200801131149.58585.mike@geekgene.com> Content-disposition: inline X-PGP-Key: http://linsec.ca/vdanen.asc X-PGP-Key-ID: 0xFEE30AD4 X-PGP-Key-Fingerprint: 7F6C A60C 06C2 4811 FA1C A2BC 2EBC 5E32 FEE3 0AD4 X-Delivery-Agent: TMDA/1.1.10 (Killyloch) X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: vdanen@annvix.org X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on hades.annvix.ca X-SA-Exim-Version: 4.2.1 (built Tue, 18 Dec 2007 12:19:09 -0700) X-SA-Exim-Scanned: Yes (on hades.annvix.org) User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-2.6 required=6.0 tests=BAYES_00 autolearn=unavailable version=3.2.3 X-Spam-Level: Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1630 Archived-At: --7quVE/NlH+cK1xMR Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Mike Buland [2008-01-13 11:49:58 -0700]: >Hey, a complicated program they made is better than one I have to manage. > >If you do read the docs, they don't handle signals in mysqld, like I say,= =20 >mysqlmanager does. They don't defend it, but they do explain that the onl= y=20 >way to safely shutdown mysql is to send it a command via the named socket.= =20 >Since this can't be done easily from the commandline without a password,= =20 >unless you configrue mysql to accept the command from root without a=20 >password, then this seems like a pretty decent solution, since this progra= m=20 >basically supervises it's child mysql processes and sends them a safe=20 >shutdown signal when the mysqlmanager program receives a term signal. > >All the scripts I've read from debian and redhat just send a kill...althou= gh=20 >this seems alright most of the time (and they are official scripts), that= =20 >doesn't gurantee that data is flushed to disk, if mysql is in the middle o= f a=20 >large operation, that data is gone. This solution does solve that problem= ,=20 >and keep runit from waiting for mysql to TERM. Hmmm... I didn't know anything about this mysqlmanager. Care to share your runit script? =3D) I may have to look into using that instead of calling mysqld directly. --=20 Vincent Danen @ http://linsec.ca/ --7quVE/NlH+cK1xMR Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (Darwin) iEYEARECAAYFAkeK3TcACgkQLrxeMv7jCtTEXQCeJ0CouX5l0XdYyYFeOsy5ga7D eUYAni6ZQorQLEFAXDxohE3biHwmaTCu =6TVG -----END PGP SIGNATURE----- --7quVE/NlH+cK1xMR--