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

Frank Steiner fsteiner-mail1 at bio.ifi.lmu.de
Thu Nov 12 02:31:12 PST 2015

Reindl Harald wrote

>> This is not possible as it is an opensuse system script that I cannot
>> replace.
> says who?
> thats why /etc/systemd/system/ exists - override sysvinit scripts and 
> even systemd-units from packages - just name it identical and it will win

Right, but it's the /etc/init.d/nfsserver script that I'm not going
to replace as it does a lot of stuff for setting up the nfs server
the way the SuSE folks want it...

Zbigniew Jędrzejewski-Szmek wrote

> You can use systemctl is-system-running (see the man page).

The systemd in SLE 12 does not yet know about this option, but I'll
ask for an update. 

Thanks so far!


Dipl.-Inform. Frank Steiner   Web:  http://www.bio.ifi.lmu.de/~steiner/
Lehrstuhl f. Bioinformatik    Mail: http://www.bio.ifi.lmu.de/~steiner/m/
LMU, Amalienstr. 17           Phone: +49 89 2180-4049
80333 Muenchen, Germany       Fax:   +49 89 2180-99-4049
* Rekursion kann man erst verstehen, wenn man Rekursion verstanden hat. *

More information about the systemd-devel mailing list