Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

systemd wait for service to finish before login

[Unit]
Description=Prepare the system after installation
Before=getty@tty1.service getty@tty2.service getty@rrt3.service getty@tty4.service getty@tty5.service getty@tty6.service

[Service]
Type=oneshot
ExecStart=/usr/bin/prepare-system

[Install]
WantedBy=multi-user.target
Source by serverfault.com #
 
PREVIOUS NEXT
Tagged: #systemd #wait #service #finish #login
ADD COMMENT
Topic
Name
3+2 =