1 |
Canek Peláez Valdés <caneko@×××××.com> wrote: |
2 |
|
3 |
> On Tue, Aug 27, 2013 at 10:55 AM, Stefan G. Weichinger <lists@×××××.at> wrote: |
4 |
> > |
5 |
> > While we are at it ... |
6 |
> > |
7 |
> > I am currently migrating one of my basement servers ... it boots and |
8 |
> > runs with systemd already. |
9 |
> > |
10 |
> > I am fiddling with service-files for: |
11 |
> > |
12 |
> > mysql |
13 |
> > mythbackend |
14 |
> > tftp-hpa |
15 |
> > |
16 |
> > (more to come) |
17 |
> > |
18 |
> > working my way through ... making arch-linux-files fit etc. |
19 |
> > |
20 |
> > If someone already has those for gentoo ... pls post and share! |
21 |
> |
22 |
> This is my mysqld.service file used in production with Gentoo: |
23 |
> |
24 |
> ---------------------------------------------------------------- |
25 |
> [Unit] |
26 |
> Description=mySQL Server |
27 |
> After=network.target |
28 |
> Documentation=man:mysqld(8) |
29 |
> |
30 |
> [Service] |
31 |
> Type=simple |
32 |
> ExecStart=/usr/sbin/mysqld --defaults-file=/etc/mysql/my.cnf |
33 |
> --basedir=/usr --datadir=/var/lib/mysql |
34 |
> --pid-file=/var/run/mysqld/mysqld.pid |
35 |
> --socket=/var/run/mysqld/mysqld.sock |
36 |
> ExecStop=/bin/kill -15 $MAINPID |
37 |
> PIDFile=/var/run/mysqld/mysql.pid |
38 |
> Restart=always |
39 |
> CPUSchedulingPolicy=idle |
40 |
> CPUSchedulingPriority=0 |
41 |
> |
42 |
> [Install] |
43 |
> WantedBy=multi-user.target |
44 |
> ---------------------------------------------------------------- |
45 |
> |
46 |
> You can omit/ignore the CPScheduling* entries (it runs in a very old |
47 |
> machine, and I need mysql not to hog all the CPU). |
48 |
> |
49 |
> Also, I use this in /etc/tmpfiles.d/mysqld.conf: |
50 |
> |
51 |
> ---------------------------------------------------------------- |
52 |
> D /run/mysqld 0755 mysql mysql - - |
53 |
> ---------------------------------------------------------------- |
54 |
> |
55 |
> I don't use mythbackend nor tftp-hpa, but if you have the init scripts |
56 |
> for them it should be easy to write the corresponding unit files. |
57 |
|
58 |
Thanks for that, I will need thatas well. |
59 |
|
60 |
-- |
61 |
Your life is like a penny. You're going to lose it. The question is: |
62 |
How do |
63 |
you spend it? |
64 |
|
65 |
John Covici |
66 |
covici@××××××××××.com |