[systemd-devel] systemctl status and service unit configuration with startup script that exits

Lennart Poettering lennart at poettering.net
Tue Dec 20 17:56:34 UTC 2016


On Tue, 20.12.16 17:41, Owens, Stephen (MASSIT) (stephen.owens at mass.gov) wrote:

> I'm stuck with 3rd party startup scripts.
> 
> I was confused by the systemd-service documention for Type
> Type=
> 	If set to forking, it is expected that the process configured with ExecStart= will call fork() as part of its start-up
> 
> As far as I could see, the 3rd party scripts do not use fork.

Well, fork() is how on UNIX processes are created. systemd will fork()
once to invoke your startup script. As that startup script creates
additional processes as you say there must be fork() involved.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list