Re: [systemd-devel] a little help with $MAINPID please

2013-02-23 Thread Mantas Mikulėnas
On Sat, Feb 23, 2013 at 8:13 PM, Mantas Mikulėnas wrote: > On Sat, Feb 23, 2013 at 8:01 PM, lux-integ wrote: >> b) what are the advantages or disadvantaes of the following line >> ExecStop=/bin/kill -15 $(/bin/pidof mysqld) >> over >> ExecStop=/bin/kill -15 $MAINPID > > The former will simply not

Re: [systemd-devel] a little help with $MAINPID please

2013-02-23 Thread Mantas Mikulėnas
On Sat, Feb 23, 2013 at 8:01 PM, lux-integ wrote: > Greetings > > I am an absolute beginner with systemd. I came across the gentoo systemd > script > ( http://en.gentoo-wiki.com/wiki/Systemd ) > for mysql-daemon. It has these lines:- > > ExecStart=/usr/sbin/mysqld --pid-file=/var/run/mysqld/my

Re: [systemd-devel] a little help with $MAINPID please

2013-02-23 Thread Reindl Harald
Am 23.02.2013 19:01, schrieb lux-integ: > b) what are the advantages or disadvantaes of the following line > ExecStop=/bin/kill -15 $(/bin/pidof mysqld) > over > ExecStop=/bin/kill -15 $MAINPID and BTW you do not need any ExecStop in such cases 15 = SIGTERM = default and at "service stop" syst

Re: [systemd-devel] a little help with $MAINPID please

2013-02-23 Thread Reindl Harald
Am 23.02.2013 19:01, schrieb lux-integ: > Greetings > > I am an absolute beginner with systemd. I came across the gentoo systemd > script > ( http://en.gentoo-wiki.com/wiki/Systemd ) > for mysql-daemon. It has these lines:- > > ExecStart=/usr/sbin/mysqld --pid-file=/var/run/mysqld/mysqld.

[systemd-devel] a little help with $MAINPID please

2013-02-23 Thread lux-integ
Greetings I am an absolute beginner with systemd. I came across the gentoo systemd script ( http://en.gentoo-wiki.com/wiki/Systemd ) for mysql-daemon. It has these lines:- ExecStart=/usr/sbin/mysqld --pid-file=/var/run/mysqld/mysqld.pid ExecStop=/bin/kill -15 $MAINPID PIDFile=/var/run/mysql

Re: [systemd-devel] python - reading the journal

2013-02-23 Thread Zbigniew Jędrzejewski-Szmek
On Sat, Feb 23, 2013 at 02:05:27PM +, Steven Hiscocks wrote: > On 23/02/13 00:43, Zbigniew Jędrzejewski-Szmek wrote: > >On Thu, Feb 21, 2013 at 06:46:35PM +, Steven Hiscocks wrote: > >>On 21/02/13 01:49, Zbigniew Jędrzejewski-Szmek wrote: > >>>On Tue, Feb 19, 2013 at 09:02:56PM +, Steve

Re: [systemd-devel] python - reading the journal

2013-02-23 Thread Steven Hiscocks
On 23/02/13 00:43, Zbigniew Jędrzejewski-Szmek wrote: On Thu, Feb 21, 2013 at 06:46:35PM +, Steven Hiscocks wrote: On 21/02/13 01:49, Zbigniew Jędrzejewski-Szmek wrote: On Tue, Feb 19, 2013 at 09:02:56PM +, Steven Hiscocks wrote: I've pushed a few more commits. I've pushed a few commi