On Thu, 2011-05-26 at 16:52 +0800, microcai wrote: > 于 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() >
correct is sd_booted , thank you! -- Vasiliy G Tolstov <[email protected]> Selfip.Ru _______________________________________________ systemd-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/systemd-devel
