Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

How can I get a service started right at the beginning of the systemd boot sequence? shortly after the kernel has finished?

At the moment all my costum services get started at the end of systemd boot sequence. But i need one service which toggles some LEDs just then when systemd begins.

regards

share|improve this question
    
Have you tried superuser.com/questions/544399/… –  YoMismo Mar 18 at 7:45
    
How much "at the beginning"? systemd parallelizes everything, so it has no notion of "the beginning". You only can specify the exact dependencies against other units and it will generate the required ordering by itself. –  intelfx Mar 18 at 7:55
    
my service just toggle some LEDs via a bash script to indicate that the system is still booting, so I assume there is no dependencies against other units. I don't specify after and before in the service file ist that right? –  Oliver G. Mar 18 at 8:05

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.