[systemd-devel] combine old-style sysvinit daemon and new-style systemd
microcai
microcai at fedoraproject.org
Thu May 26 01:52:11 PDT 2011
于 2011年05月26日 16:33, Vasiliy G Tolstov 写道:
> Hello. If i want to write daemon, that can be running by regular init
> system (openrc, upstart and others) and systemd, how can i check inside
> my daemon, that it runs from systemd?
> In compile phase, i can build with systemd support and install service
> file, but if i do not want to write and build separate binaries for two
> init daemons, how can i solve this?
>
check sd-booted()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20110526/f85803ab/attachment.pgp>
More information about the systemd-devel
mailing list