> -Original Message-
> From: Michal Schmidt [mailto:mschm...@redhat.com]
> Sent: Friday, November 04, 2011 18:16
> To: Lennart Poettering
> Cc: Michael D. Berger; 'Kay Sievers';
> systemd-devel@lists.freedesktop.org
> Subject: Re: [systemd-devel] FW: pt
On Thu, 3 Nov 2011 23:07:43 +0100 Lennart Poettering wrote:
> b) Explicitly place your service in the root cgroup of the "cpu"
> controller, by adding "ControlGroup=cpu:/" to the service file.
Michael, have you tried option b) ?
> c) By actually assigning an RT budget to the group, by adding
> "C
On Fri, 04 Nov 2011 14:36:05 -0400 Michael D. Berger wrote:
> Your assumption is correct. In the code I have:
> if (argc == 2)
> {
> string arg = argv[1];
> if (arg != "--daemon")
> throw ...
> ::daemon(0,0);
> isDaemon = true;
>
lists.freedesktop.org
> Subject: Re: [systemd-devel] FW: pthread_create() fails SysV
> in myDaemon on boot
[...]
> I'm guessing "--daemon" tells the program to daemonize itself.
> In that case you need to add "Type=forking" and "PIDFile=...".
> See &qu
On 11/04/2011 03:11 AM, Michael D. Berger wrote:
[Service]
ControlGroupAttribute=cpu.rt_runtime_us 50
ExecStart=/usr/sbin/myDaemon --daemon
I'm guessing "--daemon" tells the program to daemonize itself.
In that case you need to add "Type=forking" and "PIDFile=...".
See "man syst
> -Original Message-
> From: Michael D. Berger [mailto:m.d.ber...@ieee.org]
> Sent: Friday, November 04, 2011 13:12
> To: 'Lennart Poettering'
> Cc: 'Kay Sievers'; 'systemd-devel@lists.freedesktop.org'
> Subject: RE: [systemd-devel] FW: pt
[...]
Correction! Debug shows the thread is now being created,
so the problem in this thread is solved. Something else
is killing myDaemon in systemd. I'll look further.
Thanks,
Mike.
--
Michael D. Berger
m.d.ber...@ieee.org
http://www.rosemike.net/
_
> -Original Message-
> From: Michal Schmidt [mailto:mschm...@redhat.com]
> Sent: Friday, November 04, 2011 07:20
> To: Michael D. Berger
> Cc: systemd-devel@lists.freedesktop.org
> Subject: Re: [systemd-devel] FW: pthread_create() fails SysV
> in myDaemon on boot
>
> -Original Message-
> From: Lennart Poettering [mailto:lenn...@poettering.net]
> Sent: Friday, November 04, 2011 08:14
> To: Michael D. Berger
> Cc: 'Kay Sievers'; systemd-devel@lists.freedesktop.org
> Subject: Re: [systemd-devel] FW: pthread_create() fails
On Thu, 03.11.11 22:11, Michael D. Berger (m.d.ber...@ieee.org) wrote:
> After googing around, here is my first attempt at
> /etc/systemd/system/myDaemon.service:
>
>[Unit]
>Description=myDaemon
>After=syslog.target network.target
>
>[Service]
>ControlGroupAttribute=cpu.rt_ru
On Thu, 03.11.11 19:27, Michael D. Berger (m.d.ber...@ieee.org) wrote:
> Which service file? If you mean "myDaemon.service", I don't
> have one; I have "/etc/init.d/myDaemon". Could I put
> options b) or c) in "/etc/init.d/myDaemon"? (I tried it, and
> I didn't start on boot. But maybe my forma
On Thu, 03 Nov 2011 12:41:05 -0400 Michael D. Berger wrote:
> However, in starting a TCP listener socket, from
> "bind(...)" I now get EADDRNOTAVAIL which is
> explained in "man 2 bind", so I am still not
> operational.
Do you use NetworkManager? The network interface may not be up yet when
your s
art Poettering'
> Cc: 'Kay Sievers'; systemd-devel@lists.freedesktop.org
> Subject: Re: [systemd-devel] FW: pthread_create() fails SysV
> in myDaemon on boot
>
> > -Original Message-
> > From: Lennart Poettering [mailto:lenn...@poettering.net]
>
> -Original Message-
> From: Lennart Poettering [mailto:lenn...@poettering.net]
> Sent: Thursday, November 03, 2011 18:08
> To: Michael D. Berger
> Cc: 'Kay Sievers'; systemd-devel@lists.freedesktop.org
> Subject: Re: [systemd-devel] FW: pthread_create() fails
stemd-devel@lists.freedesktop.org
> > Subject: Re: [systemd-devel] FW: pthread_create() fails SysV
> > in myDaemon on boot
> >
> > On Thu, Nov 3, 2011 at 17:41, Michael D. Berger
> > wrote:
> >
> > > In the link you provided, I found:
> > > i
> -Original Message-
> From: Kay Sievers [mailto:kay.siev...@vrfy.org]
> Sent: Thursday, November 03, 2011 14:58
> To: Michael D. Berger
> Cc: Michal Schmidt; systemd-devel@lists.freedesktop.org
> Subject: Re: [systemd-devel] FW: pthread_create() fails SysV
> in myD
On Thu, Nov 3, 2011 at 17:41, Michael D. Berger wrote:
> In the link you provided, I found:
> in /etc/systemd/system.conf,
> change
> #DefaultControllers=cpu
> into
> DefaultControllers=
> That, in fact, got myDaemon to start on boot.
I guess, you need to assign a realtime budget in th
> -Original Message-
> From: Michal Schmidt [mailto:mschm...@redhat.com]
> Sent: Thursday, November 03, 2011 09:05
> To: Michael D. Berger
> Cc: systemd-devel@lists.freedesktop.org
> Subject: Re: [systemd-devel] FW: pthread_create() fails SysV
> in myDaemon on bo
8
> To: systemd-devel@lists.freedesktop.org
> Subject: [systemd-devel] FW: pthread_create() fails SysV in
> myDaemon on boot
>
> It was suggested that I send below problem to you.
> I tried to join the list but it didn't work.
>
> Mike.
[...]
Ok, I'm on the list now; i
On Wed, Nov 2, 2011 at 1:59 PM, Michael D. Berger
wrote:
In F15_64, on starting SysV myDaemon in level 3, with S99myDaemon
rtn = pthread_create() fails with:
rtn=1=Operation not permitted
Can you produce a minimal testcase for us to reproduce the problem?
Does this look related?:
https:
It was suggested that I send below problem to you.
I tried to join the list but it didn't work.
Mike.
--
Michael D. Berger
m.d.ber...@ieee.org
http://www.rosemike.net/
> -Original Message-
> From: users-boun...@lists.fedoraproject.org
> [mailto:users-boun...@lists.fedoraproject.org] O
21 matches
Mail list logo