[systemd-devel] Detect if a script runs during bootup

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Wed Nov 11 07:55:57 PST 2015


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).

Zbyszek


More information about the systemd-devel mailing list