On Fri, Feb 27, 2015 at 7:00 PM, Johannes Kastl <mail@ojkastl.de> wrote:
-----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
Make the service of Type=notify , execute systemd-notify --ready when the task has completed and then exit 0; Make the display-manager.service start After=yourservice.. Note that if your service takes a while, it might timeout, so you need to adjust the timeouts accordingly, or better.. find a way that does not require this hack. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org