public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Canek Peláez Valdés" <caneko@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] looking for a couple of systemd units
Date: Tue, 27 Aug 2013 11:30:18 -0500	[thread overview]
Message-ID: <CADPrc80gwBR7td_wpucq+dcW-v6mSPhyntkbfAfD8ByyN1hFBg@mail.gmail.com> (raw)
In-Reply-To: <521CD0E3.10906@xunil.at>

On Tue, Aug 27, 2013 at 11:16 AM, Stefan G. Weichinger <lists@xunil.at> wrote:
> Am 27.08.2013 18:02, schrieb Canek Peláez Valdés:
>> On Tue, Aug 27, 2013 at 10:55 AM, Stefan G. Weichinger <lists@xunil.at> wrote:
>>>
>>> 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=mySQL Server
>> After=network.target
>> Documentation=man:mysqld(8)
>>
>> [Service]
>> Type=simple
>> ExecStart=/usr/sbin/mysqld --defaults-file=/etc/mysql/my.cnf
>> --basedir=/usr --datadir=/var/lib/mysql
>> --pid-file=/var/run/mysqld/mysqld.pid
>> --socket=/var/run/mysqld/mysqld.sock
>> ExecStop=/bin/kill -15 $MAINPID
>> PIDFile=/var/run/mysqld/mysql.pid
>> Restart=always
>> CPUSchedulingPolicy=idle
>> CPUSchedulingPriority=0
>>
>> [Install]
>> WantedBy=multi-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 - -
>> ----------------------------------------------------------------
>
>
> Shouldn't it be /var/run/mysqld ... ?

It doesn't matter; as per the discussion above, /var/run should be a
bind mount of /run (the default in Gentoo), or a symbolic link to
/run. In either case, /var/run/mysqld *is* /run/mysqld.

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México


  reply	other threads:[~2013-08-27 16:30 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-27  3:52 [gentoo-user] looking for a couple of systemd units covici
2013-08-27  4:06 ` Canek Peláez Valdés
2013-08-27  4:18   ` Canek Peláez Valdés
2013-08-27  6:10     ` covici
2013-08-27  6:24       ` Canek Peláez Valdés
2013-08-27  6:46         ` covici
2013-08-27  7:46         ` covici
2013-08-27 13:58           ` Canek Peláez Valdés
2013-08-27 14:41             ` covici
2013-08-27 14:47               ` Canek Peláez Valdés
2013-08-27 15:39                 ` covici
2013-08-27 15:57                   ` Canek Peláez Valdés
2013-08-27 20:12                     ` covici
2013-08-27 14:16         ` Samuli Suominen
2013-08-27  5:41   ` covici
2013-08-27 15:55     ` Stefan G. Weichinger
2013-08-27 16:02       ` Canek Peláez Valdés
2013-08-27 16:16         ` Stefan G. Weichinger
2013-08-27 16:30           ` Canek Peláez Valdés [this message]
2013-08-27 16:35           ` Stefan G. Weichinger
2013-08-27 16:40             ` Stefan G. Weichinger
2013-08-27 16:46               ` Stefan G. Weichinger
2013-08-27 16:57                 ` Canek Peláez Valdés
2013-08-27 17:32                   ` Stefan G. Weichinger
2013-08-28  6:51                   ` Stefan G. Weichinger
2013-08-30  5:24                     ` Graham Murray
2013-08-30  5:35                       ` Canek Peláez Valdés
2013-08-27 17:27                 ` Stefan G. Weichinger
2013-08-27 17:31                   ` Stefan G. Weichinger
2013-08-27 18:12                     ` Stefan G. Weichinger
2013-08-27 18:15                       ` Canek Peláez Valdés
2013-08-27 18:30                         ` Stefan G. Weichinger
2013-08-27 18:29                       ` Stefan G. Weichinger
2013-08-27 18:38                       ` Stefan G. Weichinger
2013-08-27 20:42                         ` Stefan G. Weichinger
2013-08-27 20:52                   ` covici
2013-08-27 21:04                     ` Stefan G. Weichinger
2013-08-28  6:03                       ` Stefan G. Weichinger
2013-08-28  6:08                         ` Stefan G. Weichinger
2013-08-27 20:24         ` covici

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CADPrc80gwBR7td_wpucq+dcW-v6mSPhyntkbfAfD8ByyN1hFBg@mail.gmail.com \
    --to=caneko@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox