
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Dear all, second systemd question: I need to change the boot process on one of my machines. I added a backup job, that takes a while. To avoid errors, I'd like to get the system to wait until the script is finished, before showing login prompts or the display manager. The script itself looks something like this: - ----------------
[Unit] Description="some description" ConditionFileIsExecutable=/path/to/script.sh After=basic.target
[Service] Type=oneshot ExecStart=/path/to/script.sh TimeoutSec=0 RemainAfterExit=yes
[Install] WantedBy=getty.target
I rtfm'ed that I have to add a Requires:-line to one of the later units, to get that unit to really wait for the script (or rather override the definition of that unit, but that is the first question in a separate mail... ;-) ). Which units would I have to change to get the login prompts and the display manager to wait? I tried some, including display-manager.service, but still I get an X-Server very early. The login prompts are appearing long after the X-server started, but the script might still be running (shown in process list). Thanks in advance! Regards, Johannes - -- Multiple exclamation marks are a sure sign of diseased mind. (Terry Pratchett) -----BEGIN PGP SIGNATURE----- Comment: Using GnuPG with SeaMonkey - http://www.enigmail.net/ iEYEARECAAYFAlTw6PMACgkQzi3gQ/xETbJNWgCfRgVGKDpB23Y54caukF//2Ev7 WBIAn1zNUDe8DgV0ydmOcYVdBRV9GuiX =+Cgy -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org