On Thu, 03.11.11 22:11, Michael D. Berger ([email protected]) 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.
_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to