From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id E94231381F3 for ; Tue, 27 Aug 2013 20:24:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 27E8EE0FC7; Tue, 27 Aug 2013 20:24:04 +0000 (UTC) Received: from mail0131.smtp25.com (mail0131.smtp25.com [75.126.84.131]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 06DECE0F8E for ; Tue, 27 Aug 2013 20:24:02 +0000 (UTC) Received: from ccs.covici.com (d-out-001.smtp25.com [67.228.158.174] (may be forged)) by d-out-001.smtp25.com (8.14.2/8.14.2) with ESMTP id r7RKO1bs006829 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Tue, 27 Aug 2013 16:24:02 -0400 Received: from ccs.covici.com (localhost [127.0.0.1]) by ccs.covici.com (8.14.7/8.14.5) with ESMTP id r7RKO1FU032560 for ; Tue, 27 Aug 2013 16:24:01 -0400 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] looking for a couple of systemd units In-reply-to: References: <22350.1377575576@ccs.covici.com> <4304.1377582086@ccs.covici.com> <521CCBF1.4010409@xunil.at> Comments: In-reply-to =?us-ascii?Q?=3D=3FUTF-8=3FB=3FQ2FuZWsgUGVsw6FleiBWY?= =?us-ascii?Q?Wxkw6lz=3F=3D?= message dated "Tue, 27 Aug 2013 11:02:32 -0500." X-Mailer: MH-E 8.2; nmh 1.3; GNU Emacs 23.4.1 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Tue, 27 Aug 2013 16:24:01 -0400 Message-ID: <32559.1377635041@ccs.covici.com> From: covici@ccs.covici.com X-SpamH-OriginatingIP: 70.109.53.110 X-SpamH-Filter: d-out-001.smtp25.com-r7RKO1bs006829 X-Archives-Salt: f7b2ab72-d009-47bd-b8a5-e4b62c6ddf35 X-Archives-Hash: 77542f46104b269dc4af5dc4b210f733 Canek Pel=C3=A1ez Vald=C3=A9s wrote: > On Tue, Aug 27, 2013 at 10:55 AM, Stefan G. Weichinger w= rote: > > > > While we are at it ... > > > > I am currently migrating one of my basement servers ... it boots and > > runs with systemd already. > > > > I am fiddling with service-files for: > > > > mysql > > mythbackend > > tftp-hpa > > > > (more to come) > > > > working my way through ... making arch-linux-files fit etc. > > > > If someone already has those for gentoo ... pls post and share! >=20 > This is my mysqld.service file used in production with Gentoo: >=20 > ---------------------------------------------------------------- > [Unit] > Description=3DmySQL Server > After=3Dnetwork.target > Documentation=3Dman:mysqld(8) >=20 > [Service] > Type=3Dsimple > ExecStart=3D/usr/sbin/mysqld --defaults-file=3D/etc/mysql/my.cnf > --basedir=3D/usr --datadir=3D/var/lib/mysql > --pid-file=3D/var/run/mysqld/mysqld.pid > --socket=3D/var/run/mysqld/mysqld.sock > ExecStop=3D/bin/kill -15 $MAINPID > PIDFile=3D/var/run/mysqld/mysql.pid > Restart=3Dalways > CPUSchedulingPolicy=3Didle > CPUSchedulingPriority=3D0 >=20 > [Install] > WantedBy=3Dmulti-user.target > ---------------------------------------------------------------- >=20 > You can omit/ignore the CPScheduling* entries (it runs in a very old > machine, and I need mysql not to hog all the CPU). >=20 > Also, I use this in /etc/tmpfiles.d/mysqld.conf: >=20 > ---------------------------------------------------------------- > D /run/mysqld 0755 mysql mysql - - > ---------------------------------------------------------------- >=20 > I don't use mythbackend nor tftp-hpa, but if you have the init scripts > for them it should be easy to write the corresponding unit files. Thanks for that, I will need thatas well. --=20 Your life is like a penny. You're going to lose it. The question is: How do you spend it? John Covici covici@ccs.covici.com