Zbigniew Jędrzejewski-Szmek wrote on 11/11/15 15:55: > On Wed, Nov 11, 2015 at 04:39:23PM +0100, Frank Steiner wrote: >> Isn't there an easy way to figure out if this script is running >> inside the boot process? Some variable set or not yet set? > You can use systemctl is-system-running (see the man page).
I guess another option would just be to write out a flag file into /run tree when you do the first call. First call the file won't exist, all subsequent calls it will. That might fit better with a scripted solution than calling out to an exec, but YMMV. Col -- Colin Guthrie gmane(at)colin.guthr.ie http://colin.guthr.ie/ Day Job: Tribalogic Limited http://www.tribalogic.net/ Open Source: Mageia Contributor http://www.mageia.org/ PulseAudio Hacker http://www.pulseaudio.org/ Trac Hacker http://trac.edgewall.org/ _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel