[systemd-devel] best way to monitor begining of runlevel

Vasiliy G Tolstov v.tolstov at selfip.ru
Fri Apr 1 14:11:15 PDT 2011


Hello. I have a daemon, that runs before init system, it do some things
and must sleep before system go to 3 or 5 runlevel.
That is the best way to waiting ? I'm not only using systemd, but other
init systems too...
Very simple method - in cycle parse /var/log/wtmp (/var/log/wtmpx) and
get current runlevel, but does it exists more elegant way to do whis?


Thank's



More information about the systemd-devel mailing list