[systemd-devel] FW: pthread_create() fails SysV in myDaemon on boot
Michal Schmidt
mschmidt at redhat.com
Fri Nov 4 10:35:38 PDT 2011
On 11/04/2011 03:11 AM, Michael D. Berger wrote:
> [Service]
> ControlGroupAttribute=cpu.rt_runtime_us 500000
> 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 systemd.service" for what other possibilities of "Type=" there are.
Michal
More information about the systemd-devel
mailing list