[systemd-devel] FW: pthread_create() fails SysV in myDaemon on boot
Lennart Poettering
lennart at poettering.net
Fri Nov 4 05:13:58 PDT 2011
On Thu, 03.11.11 22:11, Michael D. Berger (m.d.berger at 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_runtime_us 500000
> ExecStart=/usr/sbin/myDaemon --daemon
>
> [Install]
> WantedBy=multi-user.target
>
> I did a successful "systemctl enable myDaemon.service".
> "systemctl start myDaemon.service" starts the program,
> but as before, it fails "pthread_create(...)". Of
> course, it also fails on boot.
Check syslog whether the cgroup attribute could properly be written. And
check whether /sys/fs/cgroup/cpu/..../cpu.rt_runtime_us is properly set.
Lennart
--
Lennart Poettering - Red Hat, Inc.
More information about the systemd-devel
mailing list