[systemd-devel] How to control the login prompt from my application service unit file?
Reindl Harald
h.reindl at thelounge.net
Tue Oct 15 09:43:47 UTC 2019
Am 15.10.19 um 06:15 schrieb Moji, Shashidhar:
> We have VMware vApp based solution. Our application gets installed
> during first boot.
>
> Till now we had SLES11 OS based VM and we upgraded to SLES12. Now we
> have systemd instead of init scripts for service handling.
>
> In SLES11, we had service dependency configured in init scripts that was
> holding back the login prompt until our application installation is
> done. But in SLES12, we get the login prompt before our application is
> installed.
>
>
>
> How to hold the login prompt until our application installation is
> complete? We tried adding /Before=getty at .service/ in our application
> install unit file, but its not helping.
>
> After=local-fs.target network-online.target
>
> Before=getty at .service
did you try "Before=getty.target"?
More information about the systemd-devel
mailing list