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 8BFD21381F3 for ; Tue, 27 Aug 2013 16:02:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 61557E0F10; Tue, 27 Aug 2013 16:02:35 +0000 (UTC) Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com [209.85.217.175]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1A2E3E0F07 for ; Tue, 27 Aug 2013 16:02:33 +0000 (UTC) Received: by mail-lb0-f175.google.com with SMTP id y6so2706041lbh.6 for ; Tue, 27 Aug 2013 09:02:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=SMGI7ztlPoHpdQlimy8Xyb3GusdnzFt29JZZKsBwxdY=; b=1H3p47sYcT6MCXSH25xWE3VEVZMOJzxLBlyqHvBJL/u2ebC4ASx4KkkWXFY43mdrkq 6StdFFTJem2qK8hsFYuKI1AbiigiMwO8OpQL3dDjzjTDaINItzoU/DzeGtlK/0KzHlVT HgkDCi6oh1dHWqQgZWyS5IcUqPcu19F2gO8VMynK5JknVwtdpUtX+lOK9BvgAaMbfKPZ JgY5aeEixMkrAyS3/M1vYL0eIyX6M04U1lzPIzT5L7uqPWvdX4HSJ0ZVeLMYdw2Y4U3t 5YtLOHZIHbm4VasHGqQAXC9YqIkc5+lpi6NpefzBy5vJBK+qkkUkDHiWeDvlF0xZTe5O vbHA== 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 X-Received: by 10.152.88.20 with SMTP id bc20mr2099061lab.37.1377619352366; Tue, 27 Aug 2013 09:02:32 -0700 (PDT) Received: by 10.114.96.2 with HTTP; Tue, 27 Aug 2013 09:02:32 -0700 (PDT) In-Reply-To: <521CCBF1.4010409@xunil.at> References: <22350.1377575576@ccs.covici.com> <4304.1377582086@ccs.covici.com> <521CCBF1.4010409@xunil.at> Date: Tue, 27 Aug 2013 11:02:32 -0500 Message-ID: Subject: Re: [gentoo-user] looking for a couple of systemd units From: =?UTF-8?B?Q2FuZWsgUGVsw6FleiBWYWxkw6lz?= To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 9795c657-9b12-4bbe-bcd5-fdcb56bdf6db X-Archives-Hash: 6dea78647bbca08c0632d9c1a55e78f2 On Tue, Aug 27, 2013 at 10:55 AM, Stefan G. Weichinger wro= te: > > 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! This is my mysqld.service file used in production with Gentoo: ---------------------------------------------------------------- [Unit] Description=3DmySQL Server After=3Dnetwork.target Documentation=3Dman:mysqld(8) [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 [Install] WantedBy=3Dmulti-user.target ---------------------------------------------------------------- You can omit/ignore the CPScheduling* entries (it runs in a very old machine, and I need mysql not to hog all the CPU). Also, I use this in /etc/tmpfiles.d/mysqld.conf: ---------------------------------------------------------------- D /run/mysqld 0755 mysql mysql - - ---------------------------------------------------------------- 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. Regards. --=20 Canek Pel=C3=A1ez Vald=C3=A9s Posgrado en Ciencia e Ingenier=C3=ADa de la Computaci=C3=B3n Universidad Nacional Aut=C3=B3noma de M=C3=A9xico