Article 5NRJ1 Launch systemd service before login prompt

Launch systemd service before login prompt

by
JuventusFC
from LinuxQuestions.org on (#5NRJ1)
After being able to change the hostname on the fly, I am trying to run a systemd service before the login prompt, as the first time It asks for login credentials, the value printed on the screen refers to the previous content (previous startup) of /etc/hostname.

I already tried what is suggested here, but It didn't work for me

EDIT: It has some dependencies with other services as well, so launching the hostname-changing service as one of the first ones (i.e. DefaultDependencies=false) is not an optionlatest?d=yIl2AUoC8zA latest?i=DQra-wCvOKk:-zfDaw_yQfU:F7zBnMy latest?i=DQra-wCvOKk:-zfDaw_yQfU:V_sGLiP latest?d=qj6IDK7rITs latest?i=DQra-wCvOKk:-zfDaw_yQfU:gIN9vFwDQra-wCvOKk
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments